networkit.stopwatch

class networkit.stopwatch.Timer

Bases: object

elapsed

The number of seconds since the current time that the Timer object was created. If stop() was called, it is the number of seconds from the instance creation until stop() was called.

start_time

The time at which the Timer instance was created.

stop()

Stops the clock permanently for the instance of the Timer. Returns the time at which the instance was stopped.

stop_time

The time at which stop() was called, or None if stop was never called.

networkit.stopwatch.clockit(func)

Function decorator that times the evaluation of func and prints the execution time.