xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Seconds()

Returns the number of seconds elapsed since midnight

Syntax

Seconds() --> nSeconds

Return

The function returns a numeric value indicating the seconds elapsed since midnight with a granularity of 1/100th of a second.

Description

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.

Info

See also:ElapTime(), Days(), Time(), SecondsCpu(), Secs()
Category: Date and time
Source:rtl\seconds.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example shows a typical usage scenario for Seconds()

   PROCEDURE Main
      LOCAL nStart := Seconds()

      Inkey(1.5)     // some lengthy operation

      ? "Elapsed:", Seconds() - nStart
   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe