Version 3 (modified by 13 years ago) ( diff ) | ,
---|
IsTimeChanged
Checks whether the time is on a new second
bool IsTimeChanged(void);
Parameters
This function does not accept any parameters.
Return Value
- Returns true if the time is at a new second, or false if the time is still on the same second as the last time IsTimeChanged was called.
Remarks
When a new second is detected this function populates the g_datetime structure so that calls to GetTimeStr and GetDateStr will return the current time and date.
Examples
if(IsTimeChanged()) { DisplayText(0, 0, GetDateStr()); DisplayText(0, 30, GetTimeStr(1)); }
See Also
Note:
See TracWiki
for help on using the wiki.