summaryrefslogtreecommitdiffstats
path: root/src/timestamp.h
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2016-12-31 08:12:51 (GMT)
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-16 07:54:10 (GMT)
commit5fcdcf95cb62ab3d593c36ef90df27cef63874a1 (patch)
tree734cfe5426f48e5a0e19d5fa00e7bd2827337ee1 /src/timestamp.h
parent87111bff382655075f2577c591745a335f0103c7 (diff)
downloadNinja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.zip
Ninja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.tar.gz
Ninja-5fcdcf95cb62ab3d593c36ef90df27cef63874a1.tar.bz2
Make TimeStamp 64-bit.
This prepares it for higher-resolution timestamps.
Diffstat (limited to 'src/timestamp.h')
-rw-r--r--src/timestamp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timestamp.h b/src/timestamp.h
index cee7ba8..58ae148 100644
--- a/src/timestamp.h
+++ b/src/timestamp.h
@@ -17,8 +17,8 @@
// When considering file modification times we only care to compare
// them against one another -- we never convert them to an absolute
-// real time. On POSIX we use time_t (seconds since epoch) and on
-// Windows we use a different value. Both fit in an int.
-typedef int TimeStamp;
+// real time. On POSIX we use timespec (seconds&nanoseconds since epoch)
+// and on Windows we use a different value. Both fit in an int64.
+typedef int64_t TimeStamp;
#endif // NINJA_TIMESTAMP_H_