summaryrefslogtreecommitdiffstats
path: root/base/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/time.h')
-rw-r--r--base/time.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/time.h b/base/time.h
index 306a67c..1a0d504 100644
--- a/base/time.h
+++ b/base/time.h
@@ -48,6 +48,7 @@
#define BASE_TIME_H_
#include <time.h>
+
#include "base/basictypes.h"
#include "testing/gtest/include/gtest/gtest_prod.h"
@@ -196,6 +197,9 @@ class Time {
static const int64 kMicrosecondsPerHour = kMicrosecondsPerMinute * 60;
static const int64 kMicrosecondsPerDay = kMicrosecondsPerHour * 24;
static const int64 kMicrosecondsPerWeek = kMicrosecondsPerDay * 7;
+ static const int64 kNanosecondsPerMicrosecond = 1000;
+ static const int64 kNanosecondsPerSecond = kNanosecondsPerMicrosecond *
+ kMicrosecondsPerSecond;
// Represents an exploded time that can be formatted nicely. This is kind of
// like the Win32 SYSTEMTIME structure or the Unix "struct tm" with a few