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