This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a85f45  Use the scale in the var name.
8a85f45 is described below

commit 8a85f454a0acaf79f2ef617261ec645fdaeccbeb
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Tue Feb 2 17:59:24 2021 -0500

    Use the scale in the var name.
---
 src/test/java/org/apache/bcel/NanoTimer.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/bcel/NanoTimer.java 
b/src/test/java/org/apache/bcel/NanoTimer.java
index 975d441..cc0cb75 100644
--- a/src/test/java/org/apache/bcel/NanoTimer.java
+++ b/src/test/java/org/apache/bcel/NanoTimer.java
@@ -20,23 +20,23 @@ package org.apache.bcel;
 
 public class NanoTimer {
 
-    private long time = 0;
+    private long timeNanos = 0;
 
     public NanoTimer start() {
-        time -= System.nanoTime();
+        timeNanos -= System.nanoTime();
         return this;
     }
 
     public void stop() {
-        time += System.nanoTime();
+        timeNanos += System.nanoTime();
     }
 
     public void subtract(final NanoTimer o) {
-        time -= o.time;
+        timeNanos -= o.timeNanos;
     }
 
     public void reset() {
-        time = 0;
+        timeNanos = 0;
     }
 
     /**
@@ -44,7 +44,7 @@ public class NanoTimer {
      */
     @Override
     public String toString() {
-        return ((double) time / 1000000000) + " s";
+        return ((double) timeNanos / 1000000000) + " s";
     }
 
 

Reply via email to