HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
class for measuring time. More...
#include <Stopwatch.h>
Public Member Functions | |
Stopwatch () | |
void | Reset () |
double | DeltaTime () const |
double | DeltaTime (double prefix) const |
Static Public Member Functions | |
static Stopwatch & | GetInstance () noexcept |
gets the instance that's local to the current thread. | |
class for measuring time.
Heph::Stopwatch::Stopwatch | ( | ) |
creates a new instance and initializes it with default values.
void Heph::Stopwatch::Reset | ( | ) |
restarts the stopwatch.
double Heph::Stopwatch::DeltaTime | ( | ) | const |
gets the elapsed time since the last reset in seconds.
double Heph::Stopwatch::DeltaTime | ( | double | prefix | ) | const |
gets the elapsed time since the last reset.
prefix | the desired metric prefix. |