Skip to content

Instantly share code, notes, and snippets.

@qy3u
qy3u / measure_elapsed.cpp
Last active Jul 26, 2022
cpp measure elapsed time
View measure_elapsed.cpp
// c++11 is required
#include <chrono>
#include <string>
#include <iostream>
class Instant {
std::string description;
std::chrono::time_point<std::chrono::steady_clock> start;