mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-13 10:42:56 +01:00
Merge pull request #147 from KjellKod/OSX_std_get_timespec
Update time.cpp
This commit is contained in:
commit
5660732d82
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user