added timer

This commit is contained in:
Stedd 2024-12-01 12:37:18 +01:00
parent 35fd159bab
commit a054e515b2
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}