Exception: BigO::InstantaneousExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/big-o/exceptions.rb

Overview

The function runs too fast and can’t be quantified by our measurement tool.

To fix this error, it is possible to augment the number of times the function should run.

Instance Method Summary collapse

Constructor Details

#initializeInstantaneousExecutionError

Returns a new instance of InstantaneousExecutionError.



17
18
19
# File 'lib/big-o/exceptions.rb', line 17

def initialize
  super "Function execution time can't be quantified. (execution speed close to instantaneous)"
end