mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Fixed Timestamp::operator std::chrono::microseconds issue.
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
This commit is contained in:
committed by
Matias Fontanini
parent
7a86012292
commit
a13d7d0cb1
@@ -99,7 +99,8 @@ public:
|
||||
* Converts this Timestamp to a std::chrono::microseconds
|
||||
*/
|
||||
operator std::chrono::microseconds() const {
|
||||
return std::chrono::microseconds(seconds() * 1000000 + microseconds());
|
||||
return std::chrono::seconds(seconds()) +
|
||||
std::chrono::microseconds(microseconds());
|
||||
}
|
||||
#endif
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user