44 double get_elapsed_time()
46 return get_time() - current_time;
51 auto now = std::chrono::system_clock::now();
52 auto now_ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now);
54 auto value = now_ms.time_since_epoch();
55 auto duration = value.count() / 1000.0;
56 return static_cast<double>(duration);
61 current_time = get_time();
Keep track of time.
Definition: Timer.h:41