Skip to content

Instantly share code, notes, and snippets.

View qy3u's full-sized avatar

qy3u qy3u

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