mirror of
https://github.com/perk11/runwhenidle.git
synced 2026-01-08 21:27:57 -05:00
15 lines
402 B
C
15 lines
402 B
C
#ifndef RUNWHENIDLE_TIME_UTILS_H
|
|
#define RUNWHENIDLE_TIME_UTILS_H
|
|
#include <time.h>
|
|
|
|
/**
|
|
* Calculates the elapsed time in milliseconds between two `struct timespec` values.
|
|
*
|
|
* @param start The starting time.
|
|
* @param end The ending time.
|
|
* @return The elapsed time in milliseconds.
|
|
*/
|
|
long long get_elapsed_time_ms(struct timespec start, struct timespec end);
|
|
|
|
#endif //RUNWHENIDLE_TIME_UTILS_H
|