From 23b84d4b50b4b8663b156d167420978bdc8ab82b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 2 Apr 2020 01:35:15 +0200 Subject: [PATCH] :wrench: Remove wren's clock --- benchmark/method-call.wren | 2 -- benchmark/string-equals.wren | 3 --- 2 files changed, 5 deletions(-) diff --git a/benchmark/method-call.wren b/benchmark/method-call.wren index 93367cb7..33716ce2 100644 --- a/benchmark/method-call.wren +++ b/benchmark/method-call.wren @@ -28,7 +28,6 @@ class NthToggle is Toggle { } } -var start = System.clock var n = 100000 var val = true var toggle = Toggle.new(val) @@ -65,4 +64,3 @@ for (i in 0...n) { } System.print(ntoggle.value) -System.print("elapsed: %(System.clock - start)") diff --git a/benchmark/string-equals.wren b/benchmark/string-equals.wren index 0c87bcc2..9bdcbdfc 100644 --- a/benchmark/string-equals.wren +++ b/benchmark/string-equals.wren @@ -1,5 +1,3 @@ -var start = System.clock - var count = 0 for (i in 1..1000000) { if ("abc" == "abc") count = count + 1 @@ -21,4 +19,3 @@ for (i in 1..1000000) { } System.print(count) -System.print("elapsed: %(System.clock - start)") -- 2.43.0