Answers for "calculate time difference cpp"

C++
1

calculate time difference cpp

#include <chrono>

auto t_start = std::chrono::high_resolution_clock::now();
// the work...
auto t_end = std::chrono::high_resolution_clock::now();

double elapsed_time_ms = std::chrono::duration<double, std::milli>(t_end-t_start).count();
Posted by: Guest on June-21-2021

Code answers related to "calculate time difference cpp"

Browse Popular Code Answers by Language