43 double get_elapsed_time()
45 return get_time() - current_time;
50 auto now = std::chrono::system_clock::now();
51 auto now_ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now);
53 auto value = now_ms.time_since_epoch();
54 auto duration = value.count() / 1000.0;
55 return static_cast<double>(duration);
60 current_time = get_time();
Keep track of time.
Definition: Timer.h:40