Skip to content

aidings/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

calc time for module

1.install

pip install git+https://github.com/aidings/timer.git

2.example

import time
from timer import timer, Timer

#Timer('just one function')  # 1. 
@timer('just one function')  # 2.  
def func():
    time.sleep(2)

if __name__ == '__main__':
    func()

    """
    3.
    with Timer('just one function'):
        func()

    4.
    t = Timer('just one function')
    t.start()
    func()
    t.stop()

    t.time()
    """
    

About

calc time for module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages