Timestamp update

This commit is contained in:
Pavel Kirienko
2015-08-17 14:12:24 +03:00
parent 181b4f6094
commit 04dc7d5e85
5 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -200,14 +200,14 @@ public:
UtcTime& operator=(const Timestamp& ts)
{
*this = fromUSec(ts.husec * Timestamp::USEC_PER_LSB);
*this = fromUSec(ts.usec);
return *this;
}
operator Timestamp() const
{
Timestamp ts;
ts.husec = toUSec() / Timestamp::USEC_PER_LSB;
ts.usec = toUSec();
return ts;
}
};