]> git.tdb.fi Git - libs/core.git/blob - source/time/units.cpp
Make to_unixtime const
[libs/core.git] / source / time / units.cpp
1 /* $Id$
2
3 This file is part of libmspcore     
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "units.h"
9
10 namespace Msp {
11 namespace Time {
12
13 // Constants to be used in creation of TimeDeltas
14 const TimeDelta zero(0);
15 const TimeDelta usec(1);
16 const TimeDelta msec(1000);
17 const TimeDelta sec(1000000);
18 const TimeDelta min(60*1000000);
19 const TimeDelta hour(3600*1000000LL);
20 const TimeDelta day(86400*1000000LL);
21 const TimeDelta week(7*86400*1000000LL);
22
23 } // namespace Time
24 } // namespace Msp