timing#

Simple task timing utility.

Classes:

Timer()

Simple timer.

class csky.timing.Timer[source]#

Simple timer.

Example usage:

# set up timer
import csky as cy
timer = cy.time.Timer()
time = timer.time

# time some things
with time('some lengthy calculation'):
    [do some work here]
with time('another lengthy calculation'):
    [do some more work here]

# get summary
print(timer)

Methods:

__init__()[source]#