summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Timer.cpp
diff options
context:
space:
mode:
authoromegadox <omegadox@gmail.com>2009-03-28 08:57:34 +0000
committeromegadox <omegadox@gmail.com>2009-03-28 08:57:34 +0000
commiteb0cab140f4aa4e17cb60e39e7467a36d6bfa97d (patch)
treef725c5354346506a0491211b87e1d59cb62b7fdc /Source/Core/Common/Src/Timer.cpp
parentbdabcd4bf5a460eaed21571b17ecd48b8f8c01aa (diff)
Some code cleanup
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2768 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Timer.cpp')
-rw-r--r--Source/Core/Common/Src/Timer.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/Source/Core/Common/Src/Timer.cpp b/Source/Core/Common/Src/Timer.cpp
index ad0016b3f2..8b355ff0d4 100644
--- a/Source/Core/Common/Src/Timer.cpp
+++ b/Source/Core/Common/Src/Timer.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2003-2008 Dolphin Project.
+// Copyright (C) 2003-2009 Dolphin Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -39,9 +39,9 @@ u32 timeGetTime()
namespace Common
{
-//////////////////////////////////////////////////////////////////////////////////////////
+// --------------------------------------------
// Initiate, Start, Stop, and Update the time
-// ---------------
+// --------------------------------------------
// Set initial values for the class
Timer::Timer()
@@ -75,13 +75,12 @@ void Timer::Update()
m_LastTime = timeGetTime();
//TODO(ector) - QPF
}
-/////////////////////////////////////
-//////////////////////////////////////////////////////////////////////////////////////////
+// -------------------------------------
// Get time difference and elapsed time
-// ---------------
+// -------------------------------------
// Get the number of milliseconds since the last Update()
s64 Timer::GetTimeDifference()
@@ -138,13 +137,7 @@ std::string Timer::GetTimeElapsedFormatted() const
return TmpStr;
}
-/////////////////////////////////////
-
-
-
-//////////////////////////////////////////////////////////////////////////////////////////
// Get current time
-// ---------------
void Timer::IncreaseResolution()
{
#ifdef _WIN32
@@ -212,4 +205,4 @@ std::string Timer::GetTimeFormatted()
return std::string(formattedTime);
}
-} // end of namespace Common
+} // Namespace Common