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