Skip to content

Commit

Permalink
libdeng2: Added an easier way to get the appClock's current time
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 5, 2013
1 parent 28c4f8a commit aaa80cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/libdeng2/include/de/core/clock.h
Expand Up @@ -59,6 +59,7 @@ class DENG2_PUBLIC Clock
public:
static void setAppClock(Clock *c);
static Clock &appClock();
static Time const &appTime();

private:
Time _startedAt;
Expand Down
5 changes: 5 additions & 0 deletions doomsday/libdeng2/src/core/clock.cpp
Expand Up @@ -66,4 +66,9 @@ Clock &Clock::appClock()
return *_appClock;
}

Time const &Clock::appTime()
{
return appClock().time();
}

} // namespace de

0 comments on commit aaa80cb

Please sign in to comment.