|
|
|
@@ -103,22 +103,9 @@ public: |
|
|
|
Being a 32-bit return value, it will of course wrap back to 0 after 2^32 seconds of
|
|
|
|
uptime, so be careful to take that into account. If you need a 64-bit time, you can
|
|
|
|
use currentTimeMillis() instead.
|
|
|
|
|
|
|
|
@see getApproximateMillisecondCounter
|
|
|
|
*/
|
|
|
|
static uint32 getMillisecondCounter() noexcept;
|
|
|
|
|
|
|
|
/** Less-accurate but faster version of getMillisecondCounter().
|
|
|
|
|
|
|
|
This will return the last value that getMillisecondCounter() returned, so doesn't
|
|
|
|
need to make a system call, but is less accurate - it shouldn't be more than
|
|
|
|
100ms away from the correct time, though, so is still accurate enough for a
|
|
|
|
lot of purposes.
|
|
|
|
|
|
|
|
@see getMillisecondCounter
|
|
|
|
*/
|
|
|
|
static uint32 getApproximateMillisecondCounter() noexcept;
|
|
|
|
|
|
|
|
private:
|
|
|
|
//==============================================================================
|
|
|
|
int64 millisSinceEpoch;
|
|
|
|
|