Chrono: add method ToDoubleS()
This commit is contained in:
@@ -61,6 +61,10 @@ public:
|
|||||||
constexpr T ToScale(unsigned base) const {
|
constexpr T ToScale(unsigned base) const {
|
||||||
return count() * T(base) / 1000;
|
return count() * T(base) / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr double ToDoubleS() const {
|
||||||
|
return double(count()) / 1000.;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user