SemysTimeCheckTimeoutMSec

01 Tests two SemysTimeTicks if their difference is beyond a certain amount of milliseconds.
02

int32 SemysTimeCheckTimeoutMSec(SemysTimeTick start, SemysTimeTick cur, uint32 msec);

03 Parameters:
  • start: The start tick of the period.
  • cur: The current tick.
  • msec: Amount of milliseconds that define the period.
04 Return Values:
A value != 0 if cur is beyond the period defined by start + msec.
05 Keep in mind that using the system time for timeout handler may result in errorneous behaviour under certain circumstances.
Although the SemysTimeTick values are in UTC (and thus save from changes in daylight saving periods), changes in the actual system clock will affect tests for timeouts.
06

I know, paranoia would require using independent values like system ticks (e.g. milliseconds elapsed since system start), but for now I don't expect the system clock to be changed all the time.

07 Reference: SemysTime.h
Implementation: Semys Library
See Also: Time Sub-System, SemysTimeGetCurrentTime()

Goto: Main Page; This page is part of the Semys software documentation. See About: Documentation for details.