]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/utils.h
Add move semantics to Variant
[libs/core.git] / source / time / utils.h
index 291655946123135059c61b1b4bd0a316c25b15da..dd325b0a1d546d18b92b402bbc1eb6578ec26df7 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_TIME_UTILS_H_
 
 #include <string>
+#include <msp/core/mspcore_api.h>
 
 namespace Msp {
 namespace Time {
@@ -9,10 +10,16 @@ namespace Time {
 class TimeDelta;
 class TimeStamp;
 
-extern TimeStamp now();
-extern std::string format_now(const std::string &);
-extern TimeDelta get_cpu_time();
-extern int sleep(const TimeDelta &);
+/** Returns the current timestamp. */
+MSPCORE_API TimeStamp now();
+
+MSPCORE_API std::string format_now(const std::string &);
+
+/** Returns the CPU time used by the program so far. */
+MSPCORE_API TimeDelta get_cpu_time();
+
+/** Sleeps for the given duration. */
+MSPCORE_API void sleep(const TimeDelta &);
 
 } // namespace Time
 } // namespace Msp