Answers for "how to compare two datetime in C++"

C++
0

c++ compare time

#include <chrono> 
using namespace std::chrono; 

auto start = high_resolution_clock::now(); 
auto stop = high_resolution_clock::now(); 
auto duration = duration_cast<microseconds>(stop - start); 
  
cout << duration.count() << endl;
Posted by: Guest on March-20-2021

Code answers related to "how to compare two datetime in C++"

Browse Popular Code Answers by Language