From: Mikko Rasa Date: Sat, 9 Sep 2006 15:57:08 +0000 (+0000) Subject: Add const TimeDelta zero X-Git-Tag: 1.0~32 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8f48ddb94a4b7981f7f88a8ec6d7c672a3c6d7bb;p=libs%2Fcore.git Add const TimeDelta zero --- diff --git a/source/time/units.cpp b/source/time/units.cpp index e37987b..d435d2e 100644 --- a/source/time/units.cpp +++ b/source/time/units.cpp @@ -9,6 +9,7 @@ namespace Msp { namespace Time { // Constants to be used in creation of TimeDeltas +const TimeDelta zero(0); const TimeDelta usec(1); const TimeDelta msec(1000); const TimeDelta sec(1000000); diff --git a/source/time/units.h b/source/time/units.h index 6417782..a157c29 100644 --- a/source/time/units.h +++ b/source/time/units.h @@ -11,6 +11,7 @@ Distributed under the LGPL namespace Msp { namespace Time { +extern const TimeDelta zero; extern const TimeDelta usec; extern const TimeDelta msec; extern const TimeDelta sec;