]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/units.cpp
Rename to libmspcore
[libs/core.git] / source / time / units.cpp
diff --git a/source/time/units.cpp b/source/time/units.cpp
new file mode 100644 (file)
index 0000000..e37987b
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+This file is part of libmspframework     
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+#include "units.h"
+
+namespace Msp {
+namespace Time {
+
+// Constants to be used in creation of TimeDeltas
+const TimeDelta usec(1);
+const TimeDelta msec(1000);
+const TimeDelta sec(1000000);
+const TimeDelta min(60*1000000);
+const TimeDelta hour(3600*1000000LL);
+const TimeDelta day(86400*1000000LL);
+const TimeDelta week(7*86400*1000000LL);
+
+} // namespace Time
+} // namespace Msp