Skip to main content

clockwise 🕰️

Simple but expressive timing package in Python

Installation

pip install clockwise

Minimal Example

import clockwise

@clockwise.timing("time-as-decorator")
def foo(a: int): 
   return a + 4

def main():
    for i in range(10):
        foo(i)

    with clockwise.timing_context("time-as-context"):
        foo(1)

    clockwise.print_timings() 

if __name__ == '__main__':
    main()

Debug Mode

The profiling is skipped when running in optimized mode using the -O or -OO tags.

Metadata

Release files for clockwise 1.0.4

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

Source distribution (sdist)

Source distribution for clockwise 1.0.4
File Size Uploaded
clockwise-1.0.4.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 7.5 kB

Release files / clockwise-1.0.4.tar.gz

Download URL clockwise-1.0.4.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
331c591080a775bd38142b70c156f9d74f7353a4f39e6cd9ecd3946adbc3cea9
BLAKE2b-256 checksum
How to use checksums
9f44c1f6dc97778ccc17821d8ff681376e0f19f3c1c1ffcd47bab8aea2d32e01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release files / clockwise-1.0.4-py3-none-any.whl

Download URL clockwise-1.0.4-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d62a5ab1966eb8ae7ca81f8dc35c46e715fd3a8bc19788885ec6a325ed37145
BLAKE2b-256 checksum
How to use checksums
cfbb0646912ad32f8638524a5279e54dfba3b47e56bf02905c873523374a9a89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

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