Merge pull request #147 from KjellKod/OSX_std_get_timespec

Update time.cpp
This commit is contained in:
Kjell Hedström 2017-01-08 14:07:02 -07:00 committed by GitHub
commit 5660732d82

View File

@ -107,7 +107,10 @@ namespace g3 {
const auto kNanos = 1000000000;
ts ->tv_sec = now_ns / kNanos;
ts ->tv_nsec = now_ns % kNanos;
return TIME_UTC;
#ifdef TIME_UTC
return TIME_UTC;
#endif
return 1;
}