mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Fix mixed decl in nstime.c
Fix mixed decl in the gettimeofday() branch of nstime_update()
This commit is contained in:
parent
09d7bdb314
commit
48384dc2d8
1 changed files with 5 additions and 3 deletions
|
|
@ -128,9 +128,11 @@ nstime_update(nstime_t *time)
|
||||||
time->ns = ts.tv_sec * BILLION + ts.tv_nsec;
|
time->ns = ts.tv_sec * BILLION + ts.tv_nsec;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
struct timeval tv;
|
{
|
||||||
gettimeofday(&tv, NULL);
|
struct timeval tv;
|
||||||
time->ns = tv.tv_sec * BILLION + tv.tv_usec * 1000;
|
gettimeofday(&tv, NULL);
|
||||||
|
time->ns = tv.tv_sec * BILLION + tv.tv_usec * 1000;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Handle non-monotonic clocks. */
|
/* Handle non-monotonic clocks. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue