Maze Builder Docs 6.0.1
Loading...
Searching...
No Matches
progress.h
Go to the documentation of this file.
1#ifndef PROGRESS_H
2#define PROGRESS_H
3
4#include <chrono>
5#include <mutex>
6
7namespace mazes {
8
14class progress {
15 mutable std::mutex mtx;
16 std::chrono::steady_clock::time_point start_time;
17 std::chrono::steady_clock::time_point end_time;
18public:
19 void start() noexcept;
20
22 void reset() noexcept;
23
26 double elapsed_s() const noexcept;
27
29 double elapsed_ms() const noexcept;
30}; // progress
31} // namespace mazes
32
33#endif // PROGRESS_H
Simple clock for elapsed events.
Definition progress.h:14
double elapsed_ms() const noexcept
Get the elapsed time in milliseconds.
double elapsed_s() const noexcept
Get the elapsed time in seconds.
void reset() noexcept
Reset the clock.
Namespace for the maze builder.
Definition algo_interface.h:9