Files
runwhenidle/time_utils.h
Konstantin Pereiaslov f964e64751 Automated code formatting
2024-01-01 22:13:00 -06:00

16 lines
403 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