[common] 1e9 is a floating point notation
This commit is contained in:
1 parent
6e62ea5364
commit
3f3a8f898d
2 files changed
+2
-2
No files matched your search
@@ -51,7 +51,7 @@ static inline uint64_t nanotime()
|
||||
{
|
||||
struct timespec time;
|
||||
clock_gettime(CLOCK_MONOTONIC_RAW, &time);
|
||||
return ((uint64_t)time.tv_sec * 1e9) + time.tv_nsec;
|
||||
return ((uint64_t)time.tv_sec * 1000000000LL) + time.tv_nsec;
|
||||
}
|
||||
|
||||
static inline void nsleep(uint64_t ns)
|
||||
|
||||
Reference in new issue
Block a user