Changeset f79ee0d for doc/theses/andrew_beach_MMath/code/try-catch.cpp
- Timestamp:
- Aug 19, 2021, 1:58:46 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- 262deda0
- Parents:
- 8a1d95af
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/try-catch.cpp
r8a1d95af rf79ee0d 4 4 #include <exception> 5 5 #include <iostream> 6 #include <iomanip> 6 7 8 using namespace std; 7 9 using namespace std::chrono; 8 10 … … 29 31 time_point<steady_clock> end_time = steady_clock::now(); 30 32 nanoseconds duration = duration_cast<nanoseconds>(end_time - start_time); 31 std::cout << "Run-Time (ns): " << duration.count() << std::endl;33 cout << "Run-Time (s): " << fixed << setprecision(1) << duration.count() / 1'000'000'000. << endl; 32 34 }
Note: See TracChangeset
for help on using the changeset viewer.