diff --git a/Source/Ember/EmberDefines.h b/Source/Ember/EmberDefines.h index cb1c2ed..534f3a6 100644 --- a/Source/Ember/EmberDefines.h +++ b/Source/Ember/EmberDefines.h @@ -77,6 +77,14 @@ namespace EmberNs #define EMPTYFIELD -9999 typedef std::chrono::high_resolution_clock Clock; +/// +/// Thin wrapper around getting the current time in milliseconds. +/// +static inline size_t NowMs() +{ + return duration_cast(Clock::now().time_since_epoch()).count(); +} + #ifndef byte typedef unsigned char byte; #endif diff --git a/Source/Ember/Utils.h b/Source/Ember/Utils.h index 1310b7b..dbfa5f0 100644 --- a/Source/Ember/Utils.h +++ b/Source/Ember/Utils.h @@ -44,13 +44,6 @@ static inline size_t SizeOf(vector& vec) return sizeof(vec[0]) * vec.size(); } -/// -/// Thin wrapper around getting the current time in milliseconds. -/// -static inline size_t NowMs() -{ - return duration_cast(Clock::now().time_since_epoch()).count(); -} /// /// After a run completes, information about what was run can be saved as strings to the comments /// section of a jpg or png file. This class is just a container for those values.