mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-25 09:29:48 +00:00
Expose timespec_add
This commit is contained in:
parent
9bbfca3193
commit
a64941694f
@ -126,7 +126,7 @@ struct timespec timespec_diff(struct timespec start, struct timespec end, bool *
|
||||
return t;
|
||||
}
|
||||
|
||||
static inline struct timespec timespec_add(struct timespec start, unsigned long nsecs) {
|
||||
struct timespec timespec_add(struct timespec start, unsigned long nsecs) {
|
||||
|
||||
start.tv_nsec += nsecs;
|
||||
if (start.tv_nsec > NANOSECONDS_PER_SECOND)
|
||||
|
@ -66,6 +66,7 @@ extern READONLY pthread_t cpu_thread_id;
|
||||
* calculate the difference between two timespec structures
|
||||
*/
|
||||
struct timespec timespec_diff(struct timespec start, struct timespec end, bool *negative);
|
||||
struct timespec timespec_add(struct timespec start, unsigned long nsecs);
|
||||
|
||||
/*
|
||||
* start CPU thread
|
||||
|
Loading…
Reference in New Issue
Block a user