summaryrefslogtreecommitdiff
path: root/system_wrappers/source/clock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'system_wrappers/source/clock.cc')
-rw-r--r--system_wrappers/source/clock.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/system_wrappers/source/clock.cc b/system_wrappers/source/clock.cc
index c74c7471..7ef6c66f 100644
--- a/system_wrappers/source/clock.cc
+++ b/system_wrappers/source/clock.cc
@@ -128,18 +128,18 @@ void get_time(WindowsHelpTimer* help_timer, FILETIME& current_time) {
class RealTimeClock : public Clock {
// Return a timestamp in milliseconds relative to some arbitrary source; the
// source is fixed for this clock.
- virtual int64_t TimeInMilliseconds() {
+ virtual int64_t TimeInMilliseconds() OVERRIDE {
return TickTime::MillisecondTimestamp();
}
// Return a timestamp in microseconds relative to some arbitrary source; the
// source is fixed for this clock.
- virtual int64_t TimeInMicroseconds() {
+ virtual int64_t TimeInMicroseconds() OVERRIDE {
return TickTime::MicrosecondTimestamp();
}
// Retrieve an NTP absolute timestamp in seconds and fractions of a second.
- virtual void CurrentNtp(uint32_t& seconds, uint32_t& fractions) {
+ virtual void CurrentNtp(uint32_t& seconds, uint32_t& fractions) OVERRIDE {
timeval tv = CurrentTimeVal();
double microseconds_in_seconds;
Adjust(tv, &seconds, &microseconds_in_seconds);
@@ -148,7 +148,7 @@ class RealTimeClock : public Clock {
}
// Retrieve an NTP absolute timestamp in milliseconds.
- virtual int64_t CurrentNtpInMilliseconds() {
+ virtual int64_t CurrentNtpInMilliseconds() OVERRIDE {
timeval tv = CurrentTimeVal();
uint32_t seconds;
double microseconds_in_seconds;
@@ -184,7 +184,7 @@ class WindowsRealTimeClock : public RealTimeClock {
virtual ~WindowsRealTimeClock() {}
protected:
- timeval CurrentTimeVal() const {
+ virtual timeval CurrentTimeVal() const OVERRIDE {
const uint64_t FILETIME_1970 = 0x019db1ded53e8000;
FILETIME StartTime;
@@ -217,7 +217,7 @@ class UnixRealTimeClock : public RealTimeClock {
virtual ~UnixRealTimeClock() {}
protected:
- timeval CurrentTimeVal() const {
+ virtual timeval CurrentTimeVal() const OVERRIDE {
struct timeval tv;
struct timezone tz;
tz.tz_minuteswest = 0;