xHarbour Reference Documentation > Function Reference |
Returns the number of seconds elapsed since midnight
Seconds() --> nSeconds
The function returns a numeric value indicating the seconds elapsed since midnight with a granularity of 1/100th of a second.
Seconds() is used to calculate time spans in seconds that have elapsed since a start time. Note that the return value is reset to zero when midnight passes.
See also: | ElapTime(), Days(), Time(), SecondsCpu(), Secs() |
Category: | Date and time |
Source: | rtl\seconds.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example shows a typical usage scenario for Seconds() PROCEDURE Main LOCAL nStart := Seconds() Inkey(1.5) // some lengthy operation ? "Elapsed:", Seconds() - nStart RETURN
http://www.xHarbour.com