diff options
| author | nasr <nsrddyn@gmail.com> | 2025-11-26 23:11:25 +0100 |
|---|---|---|
| committer | nasr <nsrddyn@gmail.com> | 2025-11-26 23:11:25 +0100 |
| commit | 5c90505fe7b6566049bead5e36a5e3f73d844413 (patch) | |
| tree | d65a6402dd93d0e8ccb464eb5eab382e625a67d1 /src/main/scala/com/nsrddyn/Tools | |
| parent | d6f99d058b34d5b6fbc3f630bf491b302cdf324f (diff) | |
chore: file refactor, imported zio
next steps are running the threads multithreaded and measuring for
errors
Diffstat (limited to 'src/main/scala/com/nsrddyn/Tools')
| -rw-r--r-- | src/main/scala/com/nsrddyn/Tools/Benchmark.scala | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main/scala/com/nsrddyn/Tools/Benchmark.scala b/src/main/scala/com/nsrddyn/Tools/Benchmark.scala deleted file mode 100644 index a0b388b..0000000 --- a/src/main/scala/com/nsrddyn/Tools/Benchmark.scala +++ /dev/null @@ -1,17 +0,0 @@ -package com.nsrddyn.tools - -class Benchmark { - /* - * Calculate the time between the start of the execution of the function and the end - * */ - def measureTime(work: => Unit): Long = { - - val start = System.nanoTime() - work - val end = System.nanoTime() - end - start - } - - // TODO: map this to an actual precision value - def measurePrecision(work: => Boolean, expectedResult: Boolean): Unit = if work == expectedResult then println(true) else println(false) -} |
