TSK_time
Application Program Interface
2-509
C Interface
Syntax
curtime = TSK_time();
Parameters
Void
Return Value
Uns
curtime;
/* current time */
Description
TSK_time returns the current value of the system alarm clock.
Note that since the system clock is usually updated asynchronously via
TSK_itick or TSK_tick, curtime can lag behind the actual system time.
This lag can be even greater if a higher priority task preempts the current
task between the call to TSK_time and when its return value is used.
Nevertheless, TSK_time is useful for getting a rough idea of the current
system time.
TSK_time
Return current value of system clock