nn::nex::SystemClock::RegisterTimeProvider Member Function

Syntax

static void RegisterTimeProvider(
     TimeProvider * pTimeProvider,
     qBool needCorrection = false
);

Parameters

Name Description
pTimeProvider [in] Specifies a pointer to the time provider object. When NULL, the default time provider is used.
needCorrection [in] Sets whether correction is required because the value returned by the time provider sometimes goes to zero after operating for one traversal. For example, this needs to be set if it is based on a time that returns a 32-bit value on the order of msec as TimeProvider.

Return Values

None.

Description

Sets a time provider for this class.

Time provider (TimeProvider class) is a class object that provides time values. The time precision of the SystemClock class is influenced by the performance of the time provider. A customized (for example, high precision mode) time provider can be set with this function.

This class must be set before NetZ objects are generated. If this function is not called, the time provider the system supplies by default is used.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL