Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

time function c++

/* Answer to: "time function c++" */

#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; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #function
ADD COMMENT
Topic
Name
3+6 =