Skip to content

Instantly share code, notes, and snippets.

View willsliou's full-sized avatar
💤

Wills willsliou

💤
View GitHub Profile
@gongzhitaao
gongzhitaao / CppTimer.md
Last active January 28, 2024 14:25
Simple high resolution timer in C++

A simple Timer class that provides satisfying resolution.

API

  • Timer() constructs the timer.
  • .reset() resets the timer
  • .elapsed() returns elapsed seconds in double since last reset.