OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef TimingStateMachine_DEFINED | 8 #ifndef TimingStateMachine_DEFINED |
9 #define TimingStateMachine_DEFINED | 9 #define TimingStateMachine_DEFINED |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 kTiming_InnerState, | 60 kTiming_InnerState, |
61 }; | 61 }; |
62 | 62 |
63 inline double elapsed(); | 63 inline double elapsed(); |
64 void resetTimingState(); | 64 void resetTimingState(); |
65 void recordMeasurement(); | 65 void recordMeasurement(); |
66 | 66 |
67 int fCurrentFrame; | 67 int fCurrentFrame; |
68 int fLoops; | 68 int fLoops; |
69 double fLastMeasurement; | 69 double fLastMeasurement; |
70 WallTimer fTimer; | 70 double fStartTime; |
71 State fState; | 71 State fState; |
72 InnerState fInnerState; | 72 InnerState fInnerState; |
73 }; | 73 }; |
74 | 74 |
75 #endif | 75 #endif |
OLD | NEW |