mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Moved from gettimeofday() to the more precise clock_gettime()
This commit is contained in:
parent
0ff0561ac9
commit
e4eae1cdf9
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
|||
" struct timespec now;
|
||||
make_double(box, 0.0);
|
||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||
long long jiffy = (now.tv_sec)*1000000LL + tv.tv_nsec/1000; // nano->microseconds
|
||||
long long jiffy = (now.tv_sec)*1000000LL + now.tv_nsec/1000; // nano->microseconds
|
||||
/* Future consideration:
|
||||
mp_int bn_tmp, bn_tmp2, bn_tmp3;
|
||||
mp_init(&bn_tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue