Answers for "chrono start time in c++"

C++
1

chrono start time in c++

//declaring variables for start and end time
std::chrono::steady_clock::time_point startTime;
std::chrono::steady_clock::time_point endTime;


// these two methods will fetch start time and stop time.
startTime = std::chrono::steady_clock::now();
endTime = std::chrono::steady_clock::now();
Posted by: Guest on January-30-2022

Browse Popular Code Answers by Language