summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CElapsedTimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibCore/CElapsedTimer.cpp')
-rw-r--r--Libraries/LibCore/CElapsedTimer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Libraries/LibCore/CElapsedTimer.cpp b/Libraries/LibCore/CElapsedTimer.cpp
index a271b709e2..8d16722297 100644
--- a/Libraries/LibCore/CElapsedTimer.cpp
+++ b/Libraries/LibCore/CElapsedTimer.cpp
@@ -29,13 +29,15 @@
#include <LibCore/CElapsedTimer.h>
#include <sys/time.h>
-void CElapsedTimer::start()
+namespace Core {
+
+void ElapsedTimer::start()
{
m_valid = true;
gettimeofday(&m_start_time, nullptr);
}
-int CElapsedTimer::elapsed() const
+int ElapsedTimer::elapsed() const
{
ASSERT(is_valid());
struct timeval now;
@@ -44,3 +46,5 @@ int CElapsedTimer::elapsed() const
timeval_sub(now, m_start_time, diff);
return diff.tv_sec * 1000 + diff.tv_usec / 1000;
}
+
+}