Skip to content

paxet/timing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timing

Python3.3+ timing module, based on the work of Paul McGuire http://stackoverflow.com/a/1557906 When the program finishes, prints the time expent.

Use

You have to import the module and it will print the time on exit

import timing

If you want to process some info at intermediate work, yo must call:

start_time = timing.now()
some_method()
finish_time = timing.now()
log('Called some_method()', finish_time - start_time)

Installation

pip install git+https://github.com/paxet/timing.git

License

Licensed under MIT license

About

Python3.3+ timing module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages