Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #calculate #time #difference #cpp
ADD COMMENT
Topic
Name
9+2 =