API Guides > ConceptRT 3.x
UpTimer Class Reference

Time up counter (Chronometer) More...

Detailed Description

Time up counter (Chronometer)

Public Member Methods

 UpTimer (bool started=false)
 Constructor. More...
 
void Resume ()
 Resumes the counter. More...
 
void Suspend ()
 Suspends the counter. More...
 
bool IsResumed () const
 Query if the time has been resumed. More...
 
void Clear ()
 Clears the counter and stops it. More...
 
TimeSpan GetTime () const
 Gets the counter time. More...
 

Constructor & Destructor Documentation

UpTimer ( bool  started = false)

Constructor.

Parameters
started(optional) set started. Default = false.

Methods Documentation

void Clear ( )

Clears the counter and stops it.

TimeSpan GetTime ( ) const

Gets the counter time.

Returns
The time.
bool IsResumed ( ) const

Query if the time has been resumed.

Returns
true if it resumed.
void Resume ( )

Resumes the counter.

void Suspend ( )

Suspends the counter.