]> git.tdb.fi Git - libs/core.git/blob - source/time/utils.h
Add move semantics to Variant
[libs/core.git] / source / time / utils.h
1 #ifndef MSP_TIME_UTILS_H_
2 #define MSP_TIME_UTILS_H_
3
4 #include <string>
5 #include <msp/core/mspcore_api.h>
6
7 namespace Msp {
8 namespace Time {
9
10 class TimeDelta;
11 class TimeStamp;
12
13 /** Returns the current timestamp. */
14 MSPCORE_API TimeStamp now();
15
16 MSPCORE_API std::string format_now(const std::string &);
17
18 /** Returns the CPU time used by the program so far. */
19 MSPCORE_API TimeDelta get_cpu_time();
20
21 /** Sleeps for the given duration. */
22 MSPCORE_API void sleep(const TimeDelta &);
23
24 } // namespace Time
25 } // namespace Msp
26
27 #endif