Commit cd482ca6 authored by Max Kellermann's avatar Max Kellermann

Chrono: add method ToDoubleS()

parent e43b56eb
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment