BenchmarkResult<R> class

Inheritance

Constructors

BenchmarkResult(String name)

Properties

duration Duration
no setter
elapsedTime Duration
Elapsed time (stopTime - startTime).
no setterinherited
elapsedTimeMs int
Elapsed time in milliseconds (stopTime - startTime).
no setterinherited
elapsedTimeSec double
Elapsed time in seconds (stopTime - startTime).
no setterinherited
failedOperations int
Failed operations performed while this chronometer was running.
getter/setter pairinherited
failedOperationsAsString String
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hertz double
Returns the operations hertz: The average operations per second of the period (elapsedTimeSec) of this chronometer.
no setterinherited
hertzAsString String
no setterinherited
isFinished bool
no setterinherited
isStarted bool
no setterinherited
name String
The name/title of this chronometer.
getter/setter pairinherited
operations int
Operations performed while this chronometer was running. Used to compute hertz.
getter/setter pairinherited
operationsAsString String
no setterinherited
result → R
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
The start DateTime of this chronometer.
no setterinherited
stopTime DateTime?
The stop DateTime of this chronometer.
no setterinherited
totalOperation int?
The total number of operations to complete this chronometer.
getter/setter pairinherited

Methods

clearMarks() → void
Clears all previous set time marks.
inherited
compareTo(Chronometer other) int
Compares this object to another object.
inherited
computeHertz(int operations) double
Computes hertz for n operations.
inherited
executeOnMarkPeriod(String markKey, Duration period, void operation()) bool
Executes operations when markKey elapsed time passes period at the moment that this method is called.
inherited
getMarkElapsedTime(String markKey) Duration
Returns the elapsed time of the time mark markKey. If the mark is not set returns a zero Duration.
inherited
getMarkTime(String markKey) DateTime?
Gets a previous set time mark.
inherited
markTime(String markKey, {bool overwrite = true}) DateTime
Sets a time mark in this chronometer with the current DateTime.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeMarkTime(String markKey) DateTime?
Removes a previous set time mark.
inherited
reset() → void
Resets this chronometer for a future start and stop.
inherited
start() Chronometer
Starts the chronometer.
inherited
stop({int? operations, int? failedOperations}) Chronometer
Stops the chronometer.
inherited
timeToComplete({int? totalOperation}) Duration
Returns the time to complete totalOperation with the current hertz.
inherited
toString({bool withStartTime = true}) String
Returns a String with information of this chronometer:
override

Operators

operator +(Chronometer other) Chronometer
inherited
operator ==(Object other) bool
The equality operator.
inherited