| Version 5 (modified by , 8 months 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.
    ![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)