mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-01 18:40:12 -05:00
Move NowMs() to EmberDefines
This prevents a circular reference where Isaac.h requires this method, but Utils.h includes Isaac.h
This commit is contained in:
parent
e8bbfdd2d4
commit
3f5db01a06
@ -77,6 +77,14 @@ namespace EmberNs
|
|||||||
#define EMPTYFIELD -9999
|
#define EMPTYFIELD -9999
|
||||||
typedef std::chrono::high_resolution_clock Clock;
|
typedef std::chrono::high_resolution_clock Clock;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Thin wrapper around getting the current time in milliseconds.
|
||||||
|
/// </summary>
|
||||||
|
static inline size_t NowMs()
|
||||||
|
{
|
||||||
|
return duration_cast<milliseconds>(Clock::now().time_since_epoch()).count();
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef byte
|
#ifndef byte
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
#endif
|
#endif
|
||||||
|
@ -44,13 +44,6 @@ static inline size_t SizeOf(vector<T>& vec)
|
|||||||
return sizeof(vec[0]) * vec.size();
|
return sizeof(vec[0]) * vec.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Thin wrapper around getting the current time in milliseconds.
|
|
||||||
/// </summary>
|
|
||||||
static inline size_t NowMs()
|
|
||||||
{
|
|
||||||
return duration_cast<milliseconds>(Clock::now().time_since_epoch()).count();
|
|
||||||
}
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// After a run completes, information about what was run can be saved as strings to the comments
|
/// 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.
|
/// section of a jpg or png file. This class is just a container for those values.
|
||||||
|
Loading…
Reference in New Issue
Block a user