X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Futils.h;h=00b6ef86c274dca75cdaac1bd38eeaa353b3819d;hp=9755356d4a8da61d9db0fa32738461e6171e5466;hb=be8ea216d23bf36bdfb2d3e302638782575fc136;hpb=b56eb5ec1da675da0c66abc53c1e4f6c4e4cccbd diff --git a/source/time/utils.h b/source/time/utils.h index 9755356..00b6ef8 100644 --- a/source/time/utils.h +++ b/source/time/utils.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspcore -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_TIME_UTILS_H_ #define MSP_TIME_UTILS_H_ @@ -16,10 +9,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. */ +TimeStamp now(); + +std::string format_now(const std::string &); + +/** Returns the CPU time used by the program so far. */ +TimeDelta get_cpu_time(); + +/** Sleeps for the given duration. */ +void sleep(const TimeDelta &); } // namespace Time } // namespace Msp