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


Syntax:     SECONDS()

Purpose:    To determine the number of seconds elapsed since 12:00 AM.

Returns:    A numeric value.

            SECONDS() returns the system time as "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.

Usage:      The numeric value returned by SECONDS() provides a simple
            method of calculating elapsed time during the execution of a
            program.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

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

   * Track time elapsed in seconds.
   start = SECONDS()
   <statements>...
   elapsed = SECONDS() - start
   ? "Elapsed: " + LTRIM(STR(elapsed)) + " seconds"


See Also: TIME() ElapTime() Secs() Tstring()

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