mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-21 05:42:12 +00:00
ensure this does not happen again
This commit is contained in:
@ -979,6 +979,7 @@ inline u64 get_cur_time(void) {
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
|
|
||||||
|
// TO NOT REPLACE WITH clock_gettime!!!
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, &tz);
|
||||||
|
|
||||||
return (tv.tv_sec * 1000ULL) + (tv.tv_usec / 1000);
|
return (tv.tv_sec * 1000ULL) + (tv.tv_usec / 1000);
|
||||||
@ -992,6 +993,7 @@ inline u64 get_cur_time_us(void) {
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
|
|
||||||
|
// TO NOT REPLACE WITH clock_gettime!!!
|
||||||
gettimeofday(&tv, &tz);
|
gettimeofday(&tv, &tz);
|
||||||
|
|
||||||
return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
|
return (tv.tv_sec * 1000000ULL) + tv.tv_usec;
|
||||||
|
Reference in New Issue
Block a user