177 std::chrono::high_resolution_clock::time_point>> timerStartTime;
185 #endif // MLPACK_CORE_UTILITIES_TIMERS_HPP std::atomic< bool > & Enabled()
Modify whether or not timing is enabled.
static std::chrono::microseconds Get(const std::string &name)
Get the value of the given timer.
Linear algebra utility functions, generally performed on matrices or vectors.
static void Stop(const std::string &name)
Stop the given timer.
static void EnableTiming()
Enable timing of mlpack programs.
The timer class provides a way for mlpack methods to be timed.
static void ResetAll()
Stop and reset all running timers.
bool Enabled() const
Get whether or not timing is enabled.
Timers()
Default to disabled.
static void DisableTiming()
Disable timing of mlpack programs.
static void Start(const std::string &name)
Start the given timer.