Mercurial > hg > svcore
comparison base/RealTime.h @ 439:beb2948baa77
* Merge revisions 1041 to 1130 from sv-rdf-import branch
author | Chris Cannam |
---|---|
date | Thu, 18 Sep 2008 12:09:32 +0000 |
parents | a38cd7823cb2 |
children | 81963c51b488 |
comparison
equal
deleted
inserted
replaced
438:32c399d06374 | 439:beb2948baa77 |
---|---|
47 sec(r.sec), nsec(r.nsec) { } | 47 sec(r.sec), nsec(r.nsec) { } |
48 | 48 |
49 static RealTime fromSeconds(double sec); | 49 static RealTime fromSeconds(double sec); |
50 static RealTime fromMilliseconds(int msec); | 50 static RealTime fromMilliseconds(int msec); |
51 static RealTime fromTimeval(const struct timeval &); | 51 static RealTime fromTimeval(const struct timeval &); |
52 static RealTime fromXsdDuration(std::string xsdd); | |
53 | |
54 double toDouble() const; | |
52 | 55 |
53 RealTime &operator=(const RealTime &r) { | 56 RealTime &operator=(const RealTime &r) { |
54 sec = r.sec; nsec = r.nsec; return *this; | 57 sec = r.sec; nsec = r.nsec; return *this; |
55 } | 58 } |
56 | 59 |