public class Timer extends Object
| Constructor and Description |
|---|
Timer() |
| Modifier and Type | Method and Description |
|---|---|
static long |
time(Runnable runner)
Runs the given code and returns the elapsed time in nanoseconds.
|
public static long time(Runnable runner)
runner - Runnable containing the code to run.Copyright © 2018. All rights reserved.