Synopsis:
sys_date({ms_flag})
Arguments:
ms_flag - if this optional argument is set to a non zero value then the function returns the number of ticks in millseconds.
Description: This function returns the number of system ticks since midnight. By default this returns the number of BIOS ticks which occur at a rate of 18.2 per second. However if the ms_flag argument is set to a non-zero value then this will return the number of ticks in millseconds.
At midnight the number of ticks will reset back to zero so care should be taken when comparing two tick values that might span midnight.
Return Value:
Returns the number of system ticks since midnight.