summaryrefslogtreecommitdiff
path: root/clock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clock.cpp')
-rw-r--r--clock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clock.cpp b/clock.cpp
index b38b0c7..3c40783 100644
--- a/clock.cpp
+++ b/clock.cpp
@@ -36,7 +36,7 @@ void Stopwatch::start()
int Stopwatch::elapsed() const
{
time_t now = time(NULL);
- return now - m_startTime;
+ return (int) (now - m_startTime);
}
bool Stopwatch::exceeded(int seconds) const