Return the number of seconds that have elapsed since midnight.
XSharp.Core (in XSharp.Core.dll) Version: 2.5
FUNCTION Seconds() AS REAL8
public static double Seconds()
The number of seconds that have elapsed since midnight in the form seconds.hundredths. Numbers range from 0 to 86,399.
Seconds() provides a simple method of calculating elapsed time during program execution, based on the system clock.
It is related to the Time() function, which returns the system time in the form hh:mO:ss.
The smallest resolution depends on the hardware timer tick.
This example contrasts the value of Time() with Seconds():
This example uses Seconds() to track elapsed time in seconds:
1LOCAL nStart, nElapsed AS FLOAT
2nStart := Seconds()
6nElapsed := Seconds() - nStart
7? "Elapsed: " + NTrim(nElapsed) + " seconds"