blob: d9f03ce5021f6af77d9d13d7211d435192336f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#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
|