<cTimer>.Stop

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time > cTimer > cTimer Methods >

<cTimer>.Stop

 

Description

 

Stop the timer.

 

Syntax

 

n = <cTimer>.Stop

 

Returns

 

Number.

Quad number representing elapsed CPU cycles between start and stop cTimer events

 

Parameters

 

Name

Type

Optional

Meaning





 

Remarks

 

Restrictions

 

See also

 

Examples

 

'---Create a class variable

Dim MyTimer  As cTimer

 

'---Instantiate the class variable. This will automatically call internal Constructor

MyTimer = New cTimer

...

MyTimer.Start("Hi there, I just started")

...

'---Stop timer

MyTimer.Stop

...