Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.StopWatch
Source: src/com/multiversesocial/hyperview/StopWatch.java
A simple stopwatch based on system nanotime. By Tony Swain Jan 11 2017
Extends: none
Implements: none
public class StopWatch
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
long endNanos | No comment in source; assigned in stop(). | ||
long startNanos | No comment in source; assigned in start(); used in stop(). | ||
long totalTimeNanos | No comment in source; assigned in stop(); used in toString(). |
| Signature | Description | Source |
|---|---|---|
StopWatch() | I compute therefor I am. |
| Signature | Description | Source |
|---|---|---|
public static void main(String[] args) | 3 statement(s); calls tStopWatch.start(), tStopWatch.wait(), tStopWatch.stop(), tStopWatch.notifyAll(), tStopWatch.toString(); creates StopWatch. | |
public void start() | Sets startNanos = (long)System.nanoTime(). | |
public void stop() | 2 statement(s); calls System.nanoTime(). | |
public String toString() | 6 statement(s); calls tStringBuilder.append(), new DecimalFormat("#.##########").format(), tStringBuilder.toString(); creates StringBuilder, DecimalFormat. |
instantiation — HyperConnectionHandler.java, line 720
720 StopWatch tStopWatch = new StopWatch();