csci5451/assignments/01/common.h
2023-09-23 00:04:06 -05:00

20 lines
488 B
C

#ifndef COMMON_H_
#define COMMON_H_
/**
* @brief Output the seconds elapsed while execution.
*
* @param seconds Seconds spent on execution, excluding IO.
*/
void print_time(double const seconds);
/**
* @brief Return the number of seconds since an unspecified time (e.g., Unix
* epoch). This is accomplished with a high-resolution monotonic timer,
* suitable for performance timing.
*
* @return The number of seconds.
*/
inline double monotonic_seconds();
#endif