summaryrefslogtreecommitdiff
path: root/timer.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-12-24 17:08:15 +0800
committerKeuin <[email protected]>2022-12-24 17:26:01 +0800
commit0987464cf99120b6728949496ee41bd14a35b225 (patch)
tree749e84bcd17ec002bc486aa308c8636df2e21de2 /timer.h
parentda03ccd81467af87452b45763da87a4e3ce603a1 (diff)
Make it compile with MSVC.HEADmaster
Diffstat (limited to 'timer.h')
-rw-r--r--timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/timer.h b/timer.h
index 68774c5..71a9e3b 100644
--- a/timer.h
+++ b/timer.h
@@ -10,8 +10,8 @@
class timer {
private:
- typeof(std::chrono::system_clock::now()) start_time;
- typeof(std::chrono::system_clock::now()) end_time;
+ decltype(std::chrono::system_clock::now()) start_time;
+ decltype(std::chrono::system_clock::now()) end_time;
bool silent;
public:
timer() : silent{false} {}