X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Ftimestamp.h;h=1e1b275ab97a799cf8450e7c99ecb6472d37b1ed;hp=da4e457f8b1be6be0c4aa619274c81be80b183dc;hb=80bbee2f401b4af71cb1b80508bdb0d2bb61fa40;hpb=e1ea831a640fba534e7e42e399f04cdf681ef8d3 diff --git a/source/time/timestamp.h b/source/time/timestamp.h index da4e457..1e1b275 100644 --- a/source/time/timestamp.h +++ b/source/time/timestamp.h @@ -1,5 +1,5 @@ /* -This file is part of libmspframework +This file is part of libmspcore Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -13,9 +13,10 @@ namespace Msp { namespace Time { /** -Represents a moment in time, such as the last tick. This class is NOT intended -to be used for storing arbitary user-defined times, I'll add a DateTime class -if the need arises. +Represents a moment in time. The main source of TimeStamps is the now() +function. + +For representing user-specified times, use the DateTime class. */ class TimeStamp { @@ -33,8 +34,8 @@ public: explicit TimeStamp(int64_t u): usec(u) { } /** - Returns the raw number stored inside the TimeStamp. This should only be used - for serialization and the result should not be interpreted in any way. + Returns the raw number stored inside the TimeStamp. This value should be + considered opaque and only be used for serialization. */ int64_t raw() const { return usec; }