Commit 2ee82165 authored by Max Kellermann's avatar Max Kellermann

Chrono: rename ToScale() parameter

parent 7556abb9
...@@ -71,8 +71,8 @@ public: ...@@ -71,8 +71,8 @@ public:
} }
template<typename T=rep> template<typename T=rep>
constexpr T ToScale(unsigned base) const { constexpr T ToScale(unsigned scale) const {
return count() * T(base) / 1000; return count() * T(scale) / 1000;
} }
constexpr double ToDoubleS() const { constexpr double ToDoubleS() const {
...@@ -159,8 +159,8 @@ public: ...@@ -159,8 +159,8 @@ public:
} }
template<typename T=rep> template<typename T=rep>
constexpr T ToScale(unsigned base) const { constexpr T ToScale(unsigned scale) const {
return count() * T(base) / 1000; return count() * T(scale) / 1000;
} }
constexpr double ToDoubleS() const { constexpr double ToDoubleS() const {
......
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