Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::Stopwatch Class Reference

C++ reimplementation of the .NET Stopwatch class. More...

#include <stopwatch.hpp>

Public Member Functions

void Start ()
 
void Stop ()
 
void Reset ()
 
void Restart ()
 
TimeSpan GetElapsed () const
 
int64_t GetElapsedTicks () const
 
double_t GetElapsedMilliseconds () const
 
double_t GetElapsedSeconds () const
 

Static Public Member Functions

static Stopwatch StartNew ()
 
static int64_t GetFrequency ()
 
static int64_t GetTimestamp ()
 
static TimeSpan GetElapsedTime (int64_t startingTimestamp)
 
static TimeSpan GetElapsedTime (int64_t startingTimestamp, int64_t endingTimestamp)
 

Friends

std::ostream & operator<< (std::ostream &out, const Stopwatch &stopwatch)
 

Detailed Description

C++ reimplementation of the .NET Stopwatch class.

Provides a set of methods that can be used to accurately measure elapsed time.

See also
Source: https://github.com/dotnet/runtime/blob/release/8.0/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Stopwatch.cs

Definition at line 14 of file stopwatch.hpp.


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