| Constructor and Description |
|---|
Elapsed()
Initializes a new instance of the
Profiler.Elapsed class. |
Elapsed(java.lang.String message)
Initializes a new instance of the
Profiler.Elapsed class with the
specified message. |
Elapsed(java.lang.String message,
long intialValue)
Initializes a new instance of the
Profiler.Elapsed class with the
specified message and initial value for the totalTime time. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage()
Gets the
Profiler.Elapsed's message. |
long |
getMicros()
Gets the
Profiler.Elapsed time in μs. |
long |
getMillis()
Gets the
Profiler.Elapsed time in ms. |
long |
getNanos()
Gets the
Profiler.Elapsed time in ns. |
long |
getSeconds()
Gets the
Profiler.Elapsed time in s. |
void |
setMessage(java.lang.String message)
Sets the
Profiler.Elapsed's message. |
java.lang.String |
toMicroString()
Returns a string representation of the profiler, composed ot the
message and the time interval in μs.
|
java.lang.String |
toMilliString()
Returns a string representation of the profiler, composed ot the
message and the time interval in ms.
|
java.lang.String |
toNanoString()
Returns a string representation of the profiler, composed ot the
message and the time interval in ns.
|
java.lang.String |
toSecondString()
Returns a string representation of the profiler, composed ot the
message and the time interval in s.
|
java.lang.String |
toString() |
public Elapsed()
Profiler.Elapsed class.public Elapsed(java.lang.String message)
Profiler.Elapsed class with the
specified message.message - The specified messagepublic Elapsed(java.lang.String message,
long intialValue)
Profiler.Elapsed class with the
specified message and initial value for the totalTime time.intialValue - the initial value for the totalTime time.message - The specified messagepublic java.lang.String getMessage()
Profiler.Elapsed's message.public void setMessage(java.lang.String message)
Profiler.Elapsed's message.message - the perf totalTime's message.public long getNanos()
Profiler.Elapsed time in ns.public long getMicros()
Profiler.Elapsed time in μs.public long getMillis()
Profiler.Elapsed time in ms.public long getSeconds()
Profiler.Elapsed time in s.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toNanoString()
public java.lang.String toMicroString()
public java.lang.String toMilliString()
public java.lang.String toSecondString()
Copyright © 2018 Frederic Thevenet. All rights reserved.