diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-07-31 15:12:04 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-07-31 15:18:11 +0900 |
commit | 36eeb75372686651a4a99e51581693d222806232 (patch) | |
tree | f634c4eb9764b94890133713476d4069b44f7384 /main.cc | |
parent | e6ec11817b8d3030690129ea800a50f1272f89a5 (diff) | |
download | android_build_kati-36eeb75372686651a4a99e51581693d222806232.tar.gz android_build_kati-36eeb75372686651a4a99e51581693d222806232.tar.bz2 android_build_kati-36eeb75372686651a4a99e51581693d222806232.zip |
[C++] Use nano seconds for timestamp check
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |