Use this Timer class in any namespace, destructor will be called once scope ends and prints the executaion time in mili and microsecond.
g++ -std=c++11 main.cpp -o main && ./main
g++ -std=c++11 main.cpp -O3 -o main && ./main
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Use this Timer class in any namespace, destructor will be called once scope ends and prints the executaion time in mili and microsecond.
g++ -std=c++11 main.cpp -o main && ./main
g++ -std=c++11 main.cpp -O3 -o main && ./main