mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Fix #1676
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
#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.
|
||||
//
|
||||
// Usage:
|
||||
@@ -27,7 +27,7 @@
|
||||
namespace spdlog {
|
||||
class stopwatch
|
||||
{
|
||||
using clock = std::chrono::high_resolution_clock;
|
||||
using clock = std::chrono::steady_clock;
|
||||
std::chrono::time_point<clock> start_tp_;
|
||||
|
||||
public:
|
||||
|
Reference in New Issue
Block a user