nn::nex::SessionClock::SetTime Member Function

Syntax

static qBool SetTime(
     Time tNow
);

Parameters

Name Description
in tNow Sets the time, in milliseconds, of the session clock on the session master.

Return Values



Value Description
true Returned when set successfully.
false Returned when the setting failed. A SYSTEMERROR_DC_NOT_CLUSTER_MASTER error is signaled when this function is called on a station that is not the session master.

Description

Sets the current session clock value.

Only the session master can set the current session clock value. You can find whether a station is the session master by calling the DuplicatedObject::IsADuplicationMaster function passing a pointer to the session object instance obtained using the Session::GetInstance function.

Revision History

2011/01/27
Initial version.

CONFIDENTIAL