X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimedelta.cpp;h=d94d8c5f0e7463ad8e454ab214b6b1126206b67a;hb=cb8ed1df371834fb7766e0b7754cdf83c474d394;hp=891d56007a0316ff5b5a447383aaa72a6dd7ee54;hpb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;p=libs%2Fcore.git diff --git a/source/time/timedelta.cpp b/source/time/timedelta.cpp index 891d560..d94d8c5 100644 --- a/source/time/timedelta.cpp +++ b/source/time/timedelta.cpp @@ -1,91 +1,79 @@ -/* -This file is part of libmspframework +/* $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<