Bredbandskollen CLI  1.2
Asynchronous network task engine
TimePoint Class Reference

Measure elapsed time during execution, for example by timer events. More...

#include <logger.h>

Detailed Description

Measure elapsed time during execution, for example by timer events.

It is simply a typedef to std::chrono::steady_clock::time_point.

Example:

TimePoint start = Logger::timeNow();
// Do stuff...
std::cout << Logger::secondsSince(start) << " seconds have elapsed.";
// 2.00042 seconds have elapsed. 

The documentation for this class was generated from the following file: