aboutsummaryrefslogtreecommitdiffstats
path: root/Samples/CommonSrc/Platform/Platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/CommonSrc/Platform/Platform.cpp')
-rw-r--r--Samples/CommonSrc/Platform/Platform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Samples/CommonSrc/Platform/Platform.cpp b/Samples/CommonSrc/Platform/Platform.cpp
index c0e4438..108c7f5 100644
--- a/Samples/CommonSrc/Platform/Platform.cpp
+++ b/Samples/CommonSrc/Platform/Platform.cpp
@@ -52,12 +52,12 @@ PlatformCore::PlatformCore(Application *app)
{
pApp = app;
pApp->SetPlatformCore(this);
- StartupTicks = OVR::Timer::GetTicks();
+ StartupSeconds = OVR::Timer::GetSeconds();
}
double PlatformCore::GetAppTime() const
{
- return (OVR::Timer::GetTicks() - StartupTicks) * (1.0 / (double)OVR::Timer::MksPerSecond);
+ return OVR::Timer::GetSeconds() - StartupSeconds;
}
bool PlatformCore::SetFullscreen(const Render::RendererParams&, int fullscreen)