HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
Stopwatch.h File Reference
#include "HephShared.h"
#include <chrono>

Go to the source code of this file.

Classes

class  Heph::Stopwatch
 class for measuring time. More...
 

Macros

#define HEPH_SW_NANO   (1e-9)
 
#define HEPH_SW_MICRO   (1e-6)
 
#define HEPH_SW_MILLI   (1e-3)
 
#define HEPH_SW_RESET   Heph::Stopwatch::GetInstance().Reset()
 
#define HEPH_SW_DT   Heph::Stopwatch::GetInstance().DeltaTime()
 
#define HEPH_SW_DT_S   Heph::Stopwatch::GetInstance().DeltaTime()
 
#define HEPH_SW_DT_MS   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_MILLI)
 
#define HEPH_SW_DT_US   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_MICRO)
 
#define HEPH_SW_DT_NS   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_NANO)
 

Macro Definition Documentation

◆ HEPH_SW_RESET

#define HEPH_SW_RESET   Heph::Stopwatch::GetInstance().Reset()

resets the thread local Stopwatch instance.

◆ HEPH_SW_DT

#define HEPH_SW_DT   Heph::Stopwatch::GetInstance().DeltaTime()

gets the elapsed time since the last reset of the thread local Stopwatch instance in seconds.

◆ HEPH_SW_DT_S

#define HEPH_SW_DT_S   Heph::Stopwatch::GetInstance().DeltaTime()

gets the elapsed time since the last reset of the thread local Stopwatch instance in seconds.

◆ HEPH_SW_DT_MS

#define HEPH_SW_DT_MS   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_MILLI)

gets the elapsed time since the last reset of the thread local Stopwatch instance in milliseconds.

◆ HEPH_SW_DT_US

#define HEPH_SW_DT_US   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_MICRO)

gets the elapsed time since the last reset of the thread local Stopwatch instance in microseconds.

◆ HEPH_SW_DT_NS

#define HEPH_SW_DT_NS   Heph::Stopwatch::GetInstance().DeltaTime(HEPH_SW_NANO)

gets the elapsed time since the last reset of the thread local Stopwatch instance in nanoseconds.