Move Monoclock and strerror out of drvutil
This commit is contained in:
23
luprex/cpp/drv/osdrvutil.hpp
Normal file
23
luprex/cpp/drv/osdrvutil.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user