TutGetCurrentTimeStruct get the current SmartSockets data time as a time struct
time_return
pointer to location to store time structure
TRUE
if successful, FALSE
otherwise.
None
TutGetCurrentTimeStruct returns the current SmartSockets data time into a T_TIME_STRUCT. Data time is the time that is contained in SmartSockets time messages. The interpretation of the current data time is application-specific. Normally, the data time has some relationship to the computer wall clock time, but this is not always the case.
TutGetCurrentTimeStruct does not return the current wall clock time. Use TutGetWallTimeStruct for that.
TutGetWallTimeStruct, TutTimeNumToStr
This example prints the current SmartSockets data time:
T_TIME_STRUCT time_struct; if (!TutGetCurrentTimeStruct(&time_struct)) { TutOut("Could not get current data time\n"); return; } TutOut("Current data time is %d.%06d\n", time_struct.sec, time_struct.usec);
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |