Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::StopWatch Class Reference

Stopwatch Class. More...

#include <StopWatch.h>

Public Member Functions

 StopWatch ()
 
TimeSpan stop ()
 
void reset ()
 

Protected Attributes

DateTime lastStopTime
 

Detailed Description

Stopwatch Class.

Constructor & Destructor Documentation

◆ StopWatch()

sese::StopWatch::StopWatch ( )

Member Function Documentation

◆ reset()

void sese::StopWatch::reset ( )

Reset the stopwatch

References sese::DateTime::now(), and sese::DateTime::ONLY_CREATE.

◆ stop()

sese::TimeSpan sese::StopWatch::stop ( )

Press the stopwatch and return the time interval since the last stop

Returns
Time interval

References sese::DateTime::now(), and sese::DateTime::ONLY_CREATE.

Member Data Documentation

◆ lastStopTime

DateTime sese::StopWatch::lastStopTime
protected

The documentation for this class was generated from the following files: