You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CBLib/include/cb/time/time.h

22 lines
501 B
C++

#ifndef GODOT_HUB_MAP_TIME_H
#define GODOT_HUB_MAP_TIME_H
#include <string>
#include <map>
#include <chrono>
namespace cb::time {
using internal_clock = std::chrono::high_resolution_clock;
using time_point = std::chrono::time_point<internal_clock>;
static std::map<const std::string_view, time_point> _name_to_measurement;
time_point chrono_now();
void start_measure(const std::string_view& id);
void measure(const std::string_view& id);
}
#endif //GODOT_HUB_MAP_TIME_H