-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimer.cpp
More file actions
34 lines (34 loc) · 855 Bytes
/
Copy pathTimer.cpp
File metadata and controls
34 lines (34 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//#include <algorithm>
//#include <chrono>
//#include <iostream>
//
//using namespace std;
//using namespace std::chrono;
//
//
//
//// For demonstration purpose, we will fill up
//// a vector with random integers and then sort
//// them using sort function. We fill record
//// and print the time required by sort function
//int main()
//{
// // Get starting timepoint
// auto start = high_resolution_clock::now();
//
//
// // CODE GOES HERE
//
// // Get ending timepoint
// auto stop = high_resolution_clock::now();
//
// // Get duration. Substart timepoints to
// // get duration. To cast it to proper unit
// // use duration cast method
// auto duration = duration_cast<microseconds>(stop - start);
//
// cout << "Time taken by function: "
// << duration.count() << " microseconds" << endl;
//
// return 0;
//}