Skip to main content

Utilisation de l'application

exemple 1: la fonction est executée une fois\

from chronometrage import chronometrage

@chronometrage()
def ma_fonction_a_chronometrer():
    # Code à chronométrer
    pass

ma_fonction_a_chronometrer()

le temps d'execution est affiché dans la console

exemple 2 : la fonction est executée 3 fois

from chronometrage import chronometrage

@chronometrage(3)
def ma_fonction_a_chronometrer():
    # Code à chronométrer
    pass

ma_fonction_a_chronometrer()

le temps d'execution moyen est affiché dans la console

exemple 3 : plusieurs fonctions sont chronométrées les résultats sont mémorisés dans une liste.

from chronometrage import *

@chronometrage()
def ma_fonction_a_chronometrer_1():
    # Code à chronométrer
    pass

@chronometrage()
def ma_fonction_a_chronometrer_2():
    # Code à chronométrer
    pass

# Initialisation de la liste des temps et démarrage du mode mémorisation
init_time_list()
ma_fonction_a_chronometrer_1()
ma_fonction_a_chronometrer_2()
# Affichage de la liste des temps
print(get_time_list())

autres décorateurs possibles: chrono_s : Décorateur qui affiche le temps d'exécution d'une fonction en seconde. chrono_us : Décorateur qui affiche le temps d'exécution d'une fonction en microseconde.

Metadata

Release files for chronometrage 0.1.3.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 chronometrage 0.1.3.1
File Size Uploaded Provenance Actions
chronometrage-0.1.3.1.tar.gz 2.0 kB Without provenance Details for chronometrage-0.1.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 4.8 kB

Release files / chronometrage-0.1.3.1.tar.gz

Download URL chronometrage-0.1.3.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5310864fa36196f4f3e28ca030e8de89ef3292563fe2b20fd6695659ab549ffe
BLAKE2b-256 checksum
How to use checksums
c98a04795489404f67e5b695b0f4ea61a16214f156ffb3b6dbf470c0a807fbd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.0 Windows/10

Release files / chronometrage-0.1.3.1-py3-none-any.whl

Download URL chronometrage-0.1.3.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6a3a8400922be802d34b6af2400b4eedaab0b816c6781880d5b93da01aaf08b
BLAKE2b-256 checksum
How to use checksums
357a372b1516b2e6d8aec53e5f116890d1b9e67176061e3715098fbf651630ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.0 Windows/10

Security for chronometrage 0.1.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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