|
|
@ -5,7 +5,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <spdlog/fmt/fmt.h>
|
|
|
|
#include <spdlog/fmt/fmt.h>
|
|
|
|
|
|
|
|
|
|
|
|
// Stopwatch support for spdlog (using std::chrono::high_resolution_clock).
|
|
|
|
// Stopwatch support for spdlog (using std::chrono::steady_clock).
|
|
|
|
// Displays elapsed seconds since construction as double.
|
|
|
|
// Displays elapsed seconds since construction as double.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Usage:
|
|
|
|
// Usage:
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
namespace spdlog {
|
|
|
|
namespace spdlog {
|
|
|
|
class stopwatch
|
|
|
|
class stopwatch
|
|
|
|
{
|
|
|
|
{
|
|
|
|
using clock = std::chrono::high_resolution_clock;
|
|
|
|
using clock = std::chrono::steady_clock;
|
|
|
|
std::chrono::time_point<clock> start_tp_;
|
|
|
|
std::chrono::time_point<clock> start_tp_;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|