summaryrefslogtreecommitdiffhomepage
path: root/src/timer-ns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer-ns.cpp')
-rw-r--r--src/timer-ns.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/timer-ns.cpp b/src/timer-ns.cpp
index 45d0411c..6a24f3c9 100644
--- a/src/timer-ns.cpp
+++ b/src/timer-ns.cpp
@@ -41,29 +41,6 @@ Ns operator-(const Ns& lhs, const Ns& rhs)
return Ns{a - b};
}
-Ns operator*(const Ns& lhs, uint64_t b)
-{
- auto a = lhs.stamp;
- auto x = a * b;
- //fm_assert(!(a != 0 && x / a != b));
- fm_assert(a == 0 || x / a == b);
- return Ns{x};
-}
-
-Ns operator*(uint64_t a, const Ns& rhs)
-{
- auto b = rhs.stamp;
- return Ns{a} * b;
-}
-
-Ns operator*(const Ns& lhs, float b_)
-{
- long double a(lhs.stamp), b(b_);
- auto x = a * b;
- fm_assert(x <= 1 << 24 && x >= 0);
- return Ns{uint64_t(x)};
-}
-
uint64_t operator/(const Ns& lhs, const Ns& rhs)
{
auto a = lhs.stamp, b = rhs.stamp;