aboutsummaryrefslogtreecommitdiffstats
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cc b/main.cc
index 9a9f173..c1f3fa7 100644
--- a/main.cc
+++ b/main.cc
@@ -231,8 +231,9 @@ static int Run(const vector<Symbol>& targets,
ClearGlobCache();
}
- time_t start_time;
- time(&start_time);
+ struct timespec ts;
+ clock_gettime(CLOCK_REALTIME, &ts);
+ double start_time = ts.tv_sec + ts.tv_nsec * 0.001 * 0.001 * 0.001;
MakefileCacheManager* cache_mgr = NewMakefileCacheManager();