resonance 1.0.1
Loading...
Searching...
No Matches
systemtime.h
Go to the documentation of this file.
1#pragma once
2
3namespace Sch {
4
22public:
28
36 long long Now();
37
45 void Mark(long long nNanoseconds);
46
56 void Pause();
57
67 void Resume();
68
79 void Advance(int nAmount);
80
82 long long mOriginMs;
83
84private:
85 double mNsPerUnit; // +0x00 nanoseconds in one clock unit
86 long long mStartMs; // +0x08 the reading the running time is measured from
87 int mRunning; // +0x18 set to 1 on construction, cleared while paused
88 int mReserved1c; // +0x1c never accessed
89 long long mPausedRunMs; // +0x20 the running time at the last pause, cleared on construction
90};
91
92} // namespace Sch
void Advance(int nAmount)
Stop the clock and move its paused running time forward.
void Resume()
Restart a stopped clock from where it stopped.
long long mOriginMs
The millisecond reading the current run started at.
Definition systemtime.h:82
void Mark(long long nNanoseconds)
Record a reference reading for the next comparison.
void Pause()
Stop the clock, remembering how far it had run.
long long Now()
Read the clock.
Scheduling of timed commands.
Definition activefilter.h:9