Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>seconds()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SECONDS()
 Return the number of seconds elapsed since midnight
------------------------------------------------------------------------------
 Syntax

     SECONDS() --> nSeconds

 Returns

     SECONDS() returns the system time as a numeric value in the form
     seconds.hundredths.  The numeric value returned is the number of seconds
     elapsed since midnight, and is based on a twenty-four hour clock in a
     range from zero to 86399.

 Description

     SECONDS() is a time function that 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 as a string in the form hh:mm:ss.

 Examples

     .  This example contrasts the value of TIME() with SECONDS():

        ? TIME()               // Result: 10:00:00
        ? SECONDS()            // Result: 36000.00

     .  This example uses SECONDS() to track elapsed time in seconds:

        LOCAL nStart, nElapsed
        nStart:= SECONDS()
        .
        . <statements>
        .
        nElapsed:= SECONDS() - nStart
        ? "Elapsed: " + LTRIM(STR(nElapsed)) + " seconds"

 Files:  Library is CLIPPER.LIB.

See Also: TIME()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson