nn::nex::SystemClock Class

Syntax

class SystemClock : public nn::nex::RootObject

Description

Determines, sets, and resets time.

The time provided by the SystemClock class is not synchronized by all stations in the session. Use the SessionClock class for time management synchronized during the session.

Time provided by SystemClock represents time elapsed since the start of the process in milliseconds. Because the elapsed time is calculated using 64 bits, in actual practice, an overflow is unlikely.

The precision of the time value is determined by the performance of the time provider on the platform. Although the time provider is set by default, a different time provider can be created and set for each application (see the RegisterTimeProvider function).

Because the processing load to get time when using the default time provider is not small, take note of performance when calling it frequently.

Member Functions

SystemClock Do not call this constructor from the application.
V ~SystemClock Do not call this destructor from the application side.
S RegisterTimeProvider Sets a time provider for this class.
S GetTime Gets the system time in milliseconds.
S Reset Performs reset processing.

Class Hierarchy

nn::nex::RootObject
  nn::nex::SystemClock

Revision History

2012/10/16
Noted that performance must be noted when frequently getting time using the default time provider.
2011/01/27
Initial version.

CONFIDENTIAL