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

 

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.