Skip to content

Commit 7b78d89

Browse files
committed
remove using namespace from .h
1 parent c8021d9 commit 7b78d89

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libs/openFrameworks/utils/ofTimerFps.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include "ofTimerFps.h"
22

3+
using namespace std::chrono;
4+
using namespace std::chrono_literals;
5+
36
void ofTimerFps::reset() {
47
wakeTime = steady_clock::now();
58
}

libs/openFrameworks/utils/ofTimerFps.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#include <iostream>
88
#include <thread>
99

10-
using namespace std::chrono;
11-
using namespace std::chrono_literals;
12-
1310
class ofTimerFps {
1411
public:
1512
ofTimerFps();
@@ -19,7 +16,7 @@ class ofTimerFps {
1916

2017
using space = std::chrono::duration<long long, std::nano>;
2118
space interval;
22-
time_point<steady_clock> wakeTime;
23-
time_point<steady_clock> lastWakeTime;
19+
std::chrono::time_point<std::chrono::steady_clock> wakeTime;
20+
std::chrono::time_point<std::chrono::steady_clock> lastWakeTime;
2421

2522
};

0 commit comments

Comments
 (0)