INtime SDK Help
knGetKernelTime, knGetKernelTime0
INtime SDK v7.1 > About INtime > INtime Kernel > Time management > knGetKernelTime, knGetKernelTime0

Returns the value of the counter the kernel uses to tally the number of system timer ticks that have occurred. This call is non scheduling, and it may be used in interrupt handlers.

QWORD knGetKernelTime(
    LPKNTIME lpTime    // pointer to a KNTIME structure

QWORD knGetKernelTime0(void);


If non-NULL, pointer to a KNTIME structure where the kernel stores the value. The value is also returned as a QWORD from the function.


When the kernel is initialized, the count is set to 0 (zero). You can set the count to any value with knSetKernelTime.

knGetKernelTime0 is a parameterless version which returns the same value as knGetKernelTime. This version should be used in interrupt handlers to avoid a potential write to the stack segment.

Return Values

The 64-bit value of the system timer tick counter.


Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also