summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
92fb929)
nanoseconds field as a microseconds field, with hilarious consequences.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9535
cda61777-01e9-0310-a592-
d414129be87e
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
return ts.tv_sec * TICKSPERSEC +
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
return ts.tv_sec * TICKSPERSEC +
- ts.tv_nsec / (1000000 / TICKSPERSEC);
+ ts.tv_nsec / (1000000000 / TICKSPERSEC);