added timer
This commit is contained in:
parent
35fd159bab
commit
a054e515b2
7
main.cpp
7
main.cpp
|
@ -1,6 +1,13 @@
|
|||
#include <chrono>
|
||||
#include <iostream>
|
||||
|
||||
#include "days/day01.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
const auto startTime = std::chrono::high_resolution_clock::now();
|
||||
day01::Run();
|
||||
const auto endTime = std::chrono::high_resolution_clock::now();
|
||||
const std::chrono::duration<double> diff = endTime - startTime;
|
||||
std::cout << "Execution time: " << diff.count() * 1e6 << " μs" << std::endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue