Move Monoclock and strerror out of drvutil

This commit is contained in:
2023-05-25 20:21:27 -04:00
parent 7e25be10a4
commit b10b9a8b5b
8 changed files with 143 additions and 109 deletions

View File

@@ -0,0 +1,23 @@
#ifndef OSDRVUTIL_HPP
#define OSDRVUTIL_HPP
#include <string>
namespace drvutil {
// Get a system error message, in an OS-independent manner.
//
std::string strerror_str(int errnum);
// Get the amount of time elapsed since program start.
//
// This is guaranteed to be monotonically increasing. It is not
// guaranteed to be accurate. Error could gradually accumulate over
// time.
//
double get_monotonic_clock();
} // namespace drvutil
#endif // OSDRVUTIL_HPP