Java org.apache.commons.lang.time StopWatch fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang.time StopWatch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang.time StopWatch.

The text is from its open source code.

Subclass

org.apache.commons.lang.time.StopWatch has subclasses.
Click this link to see all its subclasses.

Constructor

StopWatch()

Constructor.

Method

longgetSplitTime()

Get the split time on the stopwatch.

This is the time between start and latest split.

longgetTime()

Get the time on the stopwatch.

This is either the time between the start and the moment this method is called, or the amount of time between start and stop.

voidreset()

Resets the stopwatch.

voidresume()

Resume the stopwatch after a suspend.

This method resumes the watch after it was suspended.

voidsplit()

Split the time.

This method sets the stop time of the watch to allow a time to be extracted.

voidstart()

Start the stopwatch.

This method starts a new timing session, clearing any previous values.

voidstop()

Stop the stopwatch.

This method ends a new timing session, allowing the time to be retrieved.

voidsuspend()

Suspend the stopwatch for later resumption.

This method suspends the watch until it is resumed.

StringtoSplitString()

Gets a summary of the split time that the stopwatch recorded as a string.

The format used is ISO8601-like, hours:minutes:seconds.milliseconds.

StringtoString()

Gets a summary of the time that the stopwatch recorded as a string.

The format used is ISO8601-like, hours:minutes:seconds.milliseconds.

voidunsplit()

Remove a split.

This method clears the stop time.