diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/multiprocessing.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multiprocessing.c b/src/multiprocessing.c index 8c7c2e8..4ae9b31 100644 --- a/src/multiprocessing.c +++ b/src/multiprocessing.c @@ -161,6 +161,8 @@ struct MultiProcessingTask *mp_pool_task(struct MultiProcessingPool *pool, const } static void get_task_duration(struct MultiProcessingTask *task, struct timespec *result) { + // based on the timersub() macro in time.h + // This implementation uses timespec and increases the resolution from microseconds to nanoseconds. struct timespec *start = &task->time_data.t_start; struct timespec *stop = &task->time_data.t_stop; result->tv_sec = (stop->tv_sec - start->tv_sec); |