From Solid Graphics Wiki

Jump to: navigation, search
Namespace: SKL
Member of: (this function is not member of any class)
Include: SklTime.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

The CpuTickToTimeT function translates the CPU tick value returned by the GET_CPU_TICK_COUNT macro to the number of seconds elapsed since midnight (00:00:00), January 1, 1970, (UTC), according to the system clock.

time_t CpuTickToTimeT
             LONGLONG cpuTick,
             double* decPart = NULL,
             const STimersSyncInfo* syncInfo = NULL


cpuTick The CPU tick value previously returned by the GET_CPU_TICK_COUNT function.
decPart If value is not NULL then function will store decimal part of the seconds returned to variable pointed by the decPart pointer.
syncInfo Pointer to the STimersSyncInfo variable used for the translation. If NULL the function will use internal STimersSyncInfo variable initialized when the process was started. You can use other value than NULL for example when you want to translate ticks value for STimersSyncInfo values obtained from other computer or process.

See Also


SolidKit Library Documentation

Personal tools