public class NBootChronometer extends Object implements Serializable
| Constructor and Description |
|---|
NBootChronometer() |
NBootChronometer(String name) |
NBootChronometer(String name,
ChronoUnit smallestUnit) |
NBootChronometer(String name,
NBootClock startClock,
NBootClock endClock,
long accumulatedNanos,
long lastNanos,
boolean running,
ChronoUnit smallestUnit,
ChronoUnit largestUnit) |
public NBootChronometer()
public NBootChronometer(String name, NBootClock startClock, NBootClock endClock, long accumulatedNanos, long lastNanos, boolean running, ChronoUnit smallestUnit, ChronoUnit largestUnit)
public NBootChronometer(String name)
public NBootChronometer(String name, ChronoUnit smallestUnit)
public static NBootChronometer startNow()
public static NBootChronometer startNow(String name)
public static NBootChronometer startNow(ChronoUnit smallestUnit)
public static NBootChronometer startNow(String name, ChronoUnit smallestUnit)
public NBootChronometer copy()
public NBootChronometer restart()
this instancepublic NBootChronometer restart(String newName)
newName - newNamethis instancepublic NBootChronometer setName(String desc)
public NBootChronometer updateDescription(String desc)
public String getName()
public boolean isStarted()
public boolean isStopped()
public NBootChronometer reset()
public NBootChronometer start()
public NBootChronometer accumulate()
public Duration lap()
public boolean isSuspended()
public NBootChronometer suspend()
public NBootChronometer resume()
public NBootChronometer stop()
public NBootClock getStartClock()
public NBootClock getEndClock()
public NBootDuration getDuration()
public long getDurationMs()
public long getDurationNanos()
public ChronoUnit getSmallestUnit()
public NBootChronometer setSmallestUnit(ChronoUnit smallestUnit)
public ChronoUnit getLargestUnit()
public NBootChronometer setLargestUnit(ChronoUnit largestUnit)
Copyright © 2025 vpc open source initiative. All rights reserved.