Stopwatch

org.beangle.commons.lang.time.Stopwatch
See theStopwatch companion class
object Stopwatch

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Stopwatch.type

Members list

Value members

Concrete methods

def format(nanos: Long, significantDigits: Int): String

Returns a string representation of the current elapsed time, choosing an appropriate unit and using the specified number of significant figures. For example, at the instant when elapsedTime(NANOSECONDS) would return {1234567}, toString(4) returns "1.235 ms".

Returns a string representation of the current elapsed time, choosing an appropriate unit and using the specified number of significant figures. For example, at the instant when elapsedTime(NANOSECONDS) would return {1234567}, toString(4) returns "1.235 ms".

Attributes