CT_GETTIC

 GETTIC()
 Determines the number of timer ticks
------------------------------------------------------------------------------
 Syntax

     GETTIC() --> nTickCount

 Returns

     GETTIC() returns the number of timer ticks executed since the last
     SETTIC (.T.).

 Description

     Use this function in conjunction with SETTIC().  At any given time, it
     returns the number of completed timer ticks since the timer was set in
     motion (by calling SETTIC(.T.)).

 Example

     An individual UDF is to be measured in ticks.  The tick rate counter is
     started with the SETTIC(.T.) call, then stopped after execution of the
     UDF (by passing .F. to SETTIC()) and the number of completed ticks is
     queried:

     SETTIC(.T.)
        MY_UDF(I)
     SETTIC(.F.)
     ? " Required ticks:", GETTIC()

See Also: SETTIC()

 

Tools – Miscellaneous Functions

Introduction Miscellaneous Functions
ALLOFREE()*  Determines the maximum memory size allocation
BLANK()      Creates a blank value for each data type
COMPLEMENT() Forms the complement value of a data type
DATATYPE()*  Determines the data type of a variable or UDF
GETTIC()     Determines the number of timer ticks
KBDDISABLE() Locks/unlocks the keyboard
KBDEMULATE() Inserts characters into BIOS keyboard buffer to emulate input
KBDSPEED()   Sets keyboard auto repeat speed
KBDSTAT()    Tests for key shift state status, such as Ctrl and Shift
KBDTYPE()    Determines the type of keyboard in use
KEYSEC()     Triggers a key trap after a time delay
KEYTIME()    Triggers a key trap at a specific clock time
MILLISEC()   Time delay in milliseconds
NUL()        Converts the value returned by a function into a null string
SCANKEY()    Queries scan code of keyboard input
SETTIC()     Increases number of time ticks
SHOWKEY()    Continuously displays the INSERT and LOCK status
SOUND()      Creates tones (melodies) by designating frequency and duration
SPEED()      A comparison value used to determine the processor speed
STACKFREE()  Determines the remaining stack space
TOOLVER()    Queries the version number of the Clipper Tools in use
XTOC()       Converts an expression of any data type into a string