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