GetMsecondCount (open)

Returns the number of mseconds passed since the beginning of the day

Syntax

LOADLIB "wh::datetime.whlib";

INTEGER FUNCTION GetMsecondCount(DATETIME endtime)

Parameters

DATETIME endtime

The end time

Return value

INTEGER

The number of milliseconds passed since 00:00:00 hours until @italic endtime of the same day. At 00:00:00 hours the function returns 0 (zero).

Examples

// Get the number of msecs passed since the start of the day
INTEGER TotalMseconds := GetMsecondCount(GetCurrentDateTime());