Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Core Module Classes > cTimer Class > cTimer Methods >

<cTimer>.Stop

Previous pageReturn to chapter overviewNext page

 

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

...