14 // set last update to now
17 // get difference between now and last update in milliseconds
18 // must be positive or error results
19 int64_t get_difference(struct timeval
*result
); // also stores in timeval
20 int64_t get_difference();
22 // get difference in arbitrary units between now and last update
23 int64_t get_scaled_difference(long denominator
);
24 static int delay(long milliseconds
);
27 struct timeval current_time
;
28 struct timeval new_time
;
29 struct timeval delay_duration
;