1 #ifndef AETHER_TIMER_HPP 2 #define AETHER_TIMER_HPP 13 std::chrono::time_point<std::chrono::steady_clock> startTime;
16 std::chrono::time_point<std::chrono::steady_clock> endTime;
Small utility class to measure time.
Definition: Timer.hpp:10
Timer()
Create a new timer. Doesn't start the timer. See start().
void start()
Starts the timer. Does nothing if already running.
Base namespace for all Aether related classes and functions.
double elapsedSeconds()
Returns the number of seconds elapsed since the timer was started.
void stop()
Stops the timer. Does nothing if not running.
double elapsedMillis()
Returns the number of milliseconds elapsed since the timer was started.