Skip to main content

Timejob

This package provides a decorator function timejob that can be used to measure the execution time of other functions in Python.

Installation

You can install this package using pip:

pip install timejob

Usage

To use the timejob decorator, simply import it from the package and apply it to the function you want to measure:

from timejob import timejob

def fibonacci(n):
    if n <= 1:
        return n
    else:
        return fibonacci(n-1) + fibonacci(n-2)
    
@timejob
def show(value: int):
    result = fibonacci(value)
    print(f"result fibonacci:{result}")

show(1)
show(10)
show(20)

When you run my_function, the decorator will print the execution time in seconds to the console.

License This package is licensed under the MIT License

Release files for timejob 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timejob 0.0.1
File Size Uploaded
timejob-0.0.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timejob 0.0.1
File Interpreter ABI Platform
timejob-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / timejob-0.0.1.tar.gz

Download URL timejob-0.0.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
32032295e8026b8f9333e9b393067c1f168aaae0ed3d6a4378227fddb143414f
BLAKE2b-256 checksum
How to use checksums
54c4d6ea845bfc727b2686fc6da34bcb80aba995afba037563763d9ddb9ad21b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / timejob-0.0.1-py3-none-any.whl

Download URL timejob-0.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a47595d7da5c71fa26e469b519029ced0180ec9aa67de48b0c82990e451adc97
BLAKE2b-256 checksum
How to use checksums
878a1538aab984925a8a585d7cd5f167c8aff878f4db74f65ee07cbb403f33c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page