From: Jérémie Astor Date: Wed, 1 Apr 2020 23:35:15 +0000 (+0200) Subject: :wrench: Remove wren's clock X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=23b84d4b50b4b8663b156d167420978bdc8ab82b;p=gwion.git :wrench: Remove wren's clock --- 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)")