public final class TimeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static double |
clock(int loops,
Runnable runnable) |
static double |
clock(Runnable runnable) |
static <S> <any> |
clockWithResult(int loops,
Supplier<S> supplier) |
static <S> <any> |
clockWithResult(Supplier<S> supplier) |
static long |
millisSince(long startNanos) |
static long |
minutesSince(long startNanos) |
static long |
secondsSince(long startNanos) |
static long |
timeSince(long startNanos,
TimeUnit destUnit) |
public static long secondsSince(long startNanos)
public static long millisSince(long startNanos)
public static long minutesSince(long startNanos)
public static long timeSince(long startNanos, TimeUnit destUnit)
public static double clock(Runnable runnable)
public static double clock(int loops, Runnable runnable)
public static <S> <any> clockWithResult(Supplier<S> supplier)
public static <S> <any> clockWithResult(int loops, Supplier<S> supplier)
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.