C5_SECONDS

 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 0 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()



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.