Chrono: add method ToDoubleS()

This commit is contained in:
Max Kellermann 2014-08-27 18:39:39 +02:00
parent e43b56eb38
commit cd482ca655
1 changed files with 4 additions and 0 deletions

View File

@ -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