Skip to content

Carmel1215/Pytimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytimer

Pytimer is a Python library for measuring the execution time of functions.

Getting Started

Prerequisites

  • Python 3.7 or higher
  • pip 22.0 or higher
  • Git must be installed and accessible in your system PATH

Installation

Use the package manager pip to install pytimer.

pip install git+https://github.com/Carmel1215/Pytimer.git

Usage

from pytimer import timer

@timer
def quick():
    pass

@timer(ns=True)
def slow():
    for _ in range(10**6):
        pass

quick()
slow()

Roadmap

  • Add comparison feature

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

A simple function timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages