30 #ifndef EXOTICA_CORE_TIMER_H_
31 #define EXOTICA_CORE_TIMER_H_
40 std::this_thread::sleep_for(std::chrono::duration<double>(t));
52 start_time_ = std::chrono::high_resolution_clock::now();
57 return std::chrono::duration_cast<std::chrono::duration<double>>(std::chrono::high_resolution_clock::now() -
start_time_).count();
61 std::chrono::time_point<std::chrono::high_resolution_clock>
start_time_;
65 #endif // EXOTICA_CORE_TIMER_H_