Returns the current elapsed time shown on this stopwatch, expressed in the desired time unit, with any fraction rounded down.
Note that the overhead of measurement can be more than a microsecond, so it is generally not useful to specify {@link TimeUnit#NANOSECONDS}precision here.
Returns the elapsed time associated with this transaction. If the transaction is in progress, it returns the running elapsed time.
@return the elapsed time as above.
Retrieves the accumulated time this object has spent running since it was last zeroed.
@return the accumulated time this object has spent running sinceit was last zeroed.
Retrieves the accumulated time this object has spent running since it was last zeroed.
@return the accumulated time this object has spent running sinceit was last zeroed.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.