From df64537353729a12c81bcb28d2cd8a785960c9a6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 24 Oct 2002 07:11:21 +0000 Subject: [PATCH] switch this little timer to RT, since dxutil is gone --- stepmania/src/ScreenManager.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenManager.cpp b/stepmania/src/ScreenManager.cpp index fda40023e0..6d27bbb1c0 100644 --- a/stepmania/src/ScreenManager.cpp +++ b/stepmania/src/ScreenManager.cpp @@ -17,7 +17,7 @@ #include "RageLog.h" #include "GameState.h" #include "RageException.h" -#include "DXUtil.h" +#include "RageTimer.h" ScreenManager* SCREENMAN = NULL; // global and accessable from anywhere in our program @@ -256,12 +256,14 @@ void ScreenManager::SetNewScreen( CString sClassName ) * Perhaps we should only do this in debug? */ FlushDirCache(); - float f = DXUtil_Timer(TIMER_GETAPPTIME); + RageTimer t; + // It makes sense that ScreenManager should allocate memory for a new screen since it // deletes it later on. This also convention will reduce includes because screens won't // have to include each other's headers of other screens. Screen* pNewScreen = MakeNewScreen(sClassName); -LOG->Trace( "Loaded %s in %f", sClassName, DXUtil_Timer(TIMER_GETAPPTIME)-f); + LOG->Trace( "Loaded %s in %f", sClassName, t.GetDeltaTime()); + SetNewScreen( pNewScreen ); }