wavelength 1.0.0
Loading...
Searching...
No Matches
systemtime.h
Go to the documentation of this file.
1#pragma once
2
3namespace Sch {
4
22public:
24
30 long long Now();
31
37 void Mark(long long nNanoseconds);
38
45 void Pause();
46
53 void Resume();
54
63 void Advance(int nAmount);
64
65private:
67 long long mOriginMs;
68
69 double mNsPerUnit; // +0x00 nanoseconds in one clock unit
70
71 long long mStartMs; // +0x08 the reading the running time is measured from
72
73 int mRunning; // +0x18 set to 1 on construction, cleared while paused
74
75 int mReserved1c; // +0x1c never accessed
76
77 long long mPausedRunMs; // +0x20 the running time at the last pause, cleared on construction
78};
79
80} // 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.
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.
Definition systemtime.h:3