Skip to content

Commit ba991ed

Browse files
Not everything was in the SDL namespace.
1 parent bfdabf5 commit ba991ed

File tree

2 files changed

+400
-396
lines changed

2 files changed

+400
-396
lines changed

clock.hh

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
#include <chrono>
55

66

7-
class Clock {
8-
decltype(std::chrono::system_clock::now()) last;
9-
bool first;
7+
namespace SDL {
8+
class Clock {
9+
decltype(std::chrono::system_clock::now()) last;
10+
bool first;
1011

11-
public:
12-
Clock();
12+
public:
13+
Clock();
1314

14-
std::chrono::milliseconds tick();
15-
std::chrono::milliseconds tick(const float fps);
16-
};
15+
std::chrono::milliseconds tick();
16+
std::chrono::milliseconds tick(const float fps);
17+
};
18+
}
1719

1820
#endif

0 commit comments

Comments
 (0)