1 #ifndef MSP_TIME_UTILS_H_
2 #define MSP_TIME_UTILS_H_
5 #include <msp/core/mspcore_api.h>
13 /** Returns the current timestamp. */
14 MSPCORE_API TimeStamp now();
16 MSPCORE_API std::string format_now(const std::string &);
18 /** Returns the CPU time used by the program so far. */
19 MSPCORE_API TimeDelta get_cpu_time();
21 /** Sleeps for the given duration. */
22 MSPCORE_API void sleep(const TimeDelta &);