X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimedelta.cpp;h=c74ffcef4f71fa08de3124b65c1c5171e721da80;hb=6a38983c19fe78753962288e206c5817ad595448;hp=acf9eeffaec66925f6175154883ac33628ebab95;hpb=fe77fc6b869a71bf94d501a0762579f4ddbc5094;p=libs%2Fcore.git diff --git a/source/time/timedelta.cpp b/source/time/timedelta.cpp index acf9eef..c74ffce 100644 --- a/source/time/timedelta.cpp +++ b/source/time/timedelta.cpp @@ -1,91 +1,79 @@ -/* +/* $Id$ + This file is part of libmspcore Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ + #include +#include #include "timedelta.h" #include "units.h" using namespace std; -namespace Msp { -namespace Time { +namespace { -void print_part(ostream &out, int64_t &value, int64_t unit, char sep, bool &first) +using Msp::Time::RawTime; + +void print_part(ostream &out, RawTime &value, RawTime unit, char sep, bool &first) { - if(value>=unit || !first) - { - if(first) - out<