package
module
Version:
v0.0.0-...-fca1a73
Opens a new window with list of versions in this module.
Published: Oct 2, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
running
Check the running time of your algorithms
Documentation
¶
R is a type passed to Run functions to check running time and support formatted run logs.
func (r *R) Run(input Sizer, algorithm func(interface{}) interface{})
Run analyzes a single input and registers its running time.
type Sizer interface {
Size() int
}
Sizer is implemented by any value that has a Size method.
The Size method is used to measure the size of inputs to algorithms.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.