summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Util/Util_LatencyTest.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibOVR/Src/Util/Util_LatencyTest.h')
-rw-r--r--LibOVR/Src/Util/Util_LatencyTest.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/LibOVR/Src/Util/Util_LatencyTest.h b/LibOVR/Src/Util/Util_LatencyTest.h
index 657a3a9..0844603 100644
--- a/LibOVR/Src/Util/Util_LatencyTest.h
+++ b/LibOVR/Src/Util/Util_LatencyTest.h
@@ -6,16 +6,16 @@ Content : Wraps the lower level LatencyTesterDevice and adds functionality
Created : February 14, 2013
Authors : Lee Cooper
-Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved.
+Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
-Licensed under the Oculus VR SDK License Version 2.0 (the "License");
-you may not use the Oculus VR SDK except in compliance with the License,
+Licensed under the Oculus VR Rift SDK License Version 3.1 (the "License");
+you may not use the Oculus VR Rift SDK except in compliance with the License,
which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
-http://www.oculusvr.com/licenses/LICENSE-2.0
+http://www.oculusvr.com/licenses/LICENSE-3.1
Unless required by applicable law or agreed to in writing, the Oculus VR SDK
distributed under the License is distributed on an "AS IS" BASIS,
@@ -80,6 +80,8 @@ public:
bool DisplayScreenColor(Color& colorToDisplay);
const char* GetResultsString();
+ bool IsMeasuringNow() const { return (State != State_WaitingForButton); }
+
// Begin test. Equivalent to pressing the button on the latency tester.
void BeginTest();
@@ -142,8 +144,8 @@ private:
: DeviceMeasuredElapsedMilliS(0),
TimedOutWaitingForTestStarted(false),
TimedOutWaitingForColorDetected(false),
- StartTestTicksMicroS(0),
- TestStartedTicksMicroS(0)
+ StartTestSeconds(0.0),
+ TestStartedSeconds(0.0)
{}
Color TargetColor;
@@ -153,8 +155,8 @@ private:
bool TimedOutWaitingForTestStarted;
bool TimedOutWaitingForColorDetected;
- UInt64 StartTestTicksMicroS;
- UInt64 TestStartedTicksMicroS;
+ double StartTestSeconds;
+ double TestStartedSeconds;
};
List<MeasurementResult> Results;