Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

TDIFF( ncT1, ncT2 [, pFormat ] )

Purpose

Calculate the difference between two times.

Arguments

     ncT1 -- start time, either in seconds or as a string of the form
             "hh:mm:ss"

     ncT2 -- stop time, either in seconds or as a string of the form
             "hh:mm:ss"

     pFormat -- pass anything to force numeric return, else returns a
                string of the form "hh:mm:ss"

Setup

None.

Example

     LOCAL i, _t1, _t2
     _t1 := SECONDS()

     FOR i := 1 TO 1000
         * How long does it take to do nothing?
     NEXT

     _t2 = SECONDS()
     ? TDIFF( _t1, _t2 )

Returns

If pFormat is passed, returns a number of seconds, else a time string. The
return value represents the difference between the two times ncT1 and ncT2.

Side Effects

None.

Artful Calls

STOT, TTOS

Source File

AA_TDIFF.PRG

See Also: STOT() TTOS()

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