Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

time function c++

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

auto start = high_resolution_clock::now(); 

// perform function to be timed here...

auto stop = high_resolution_clock::now(); 
cout << duration_cast<microseconds>(stop - start).count() << endl; 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #function
ADD COMMENT
Topic
Name
6+1 =