Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ chrono

std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now();
//other stuff
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
std::chrono::duration_cast<std::chrono::microseconds>(end - begin).count() 
//time difference in microseconds
 
PREVIOUS NEXT
Tagged: #chrono
ADD COMMENT
Topic
Name
6+2 =