mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-03 11:17:10 +00:00
[common] 1e9
is a floating point notation
This commit is contained in:
parent
6e62ea5364
commit
3f3a8f898d
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-134-g5d39b6160a+1
|
B1-135-g6e62ea5364+1
|
|
@ -51,7 +51,7 @@ static inline uint64_t nanotime()
|
||||||
{
|
{
|
||||||
struct timespec time;
|
struct timespec time;
|
||||||
clock_gettime(CLOCK_MONOTONIC_RAW, &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)
|
static inline void nsleep(uint64_t ns)
|
||||||
|
|
Loading…
Reference in a new issue