27 #include <unordered_map>
56 std::list<float> times;
57 std::list<std::chrono::system_clock::time_point> start_times;
58 std::chrono::system_clock::time_point start_time;
64 render_started =
false;
67 void start(
const std::string& name);
68 void stop(
const std::string& name);
72 const std::vector<BenchmarkTask*>
get_tasks();
77 std::chrono::system_clock::time_point fps_clock;
80 std::atomic<bool> render_started;
81 std::unordered_map<std::string, BenchmarkTask> tasks;
BenchmarkTask & operator=(const BenchmarkTask &lhs)=delete
float get_largest_time_ms()
float get_average_time_ms()
BenchmarkTask(const std::string &task, uint32_t argb)
void stop(const std::string &name)
void start(const std::string &name)
const std::vector< BenchmarkTask * > get_tasks()