Skip to main content

stepTimer

small utility to measure time left after n step of a n equally long tasks, the time withing to tasks and the total time. The utility is a bit buggy though... please contribute :)

from stepTimer import Timer

timer = timer(nsteps = 1000)

# get the time after 200 steps. this is the total time from the beginning of the task
timer.elapsed(self, step = 200) #=> 2:30:55 in H:M:S

# function to preaty print time
timer.printTime(self, <certain ammount of secods>)  #=> 2:30:55 in H:M:S

# total amount of time elapsed since timer was instantiated
elapsedTot() #=> 2:30:55 in H:M:S

# time left to the compleation of 1000 steps, the total time is calculated as nsteps*average time withing each step.
left(self, step = 300) #=> 5:30:55 in H:M:S

Release files for stepTimer 0.0.2

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

Source distribution (sdist)

Source distribution for stepTimer 0.0.2
File Size Uploaded
stepTimer-0.0.2.tar.gz 2.0 kB Details

Built distribution (wheel)

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

Total release size: 4.2 kB

Release files / stepTimer-0.0.2.tar.gz

Download URL stepTimer-0.0.2.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
acf276d49d554a7b940980100f05531baa470fe81b225969a0fcd85129a727cc
BLAKE2b-256 checksum
How to use checksums
7d013d7b3248b1ca78055123617bf12135f345955cb895c4892ecc076651ff77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.27.0 CPython/3.6.7

Release files / stepTimer-0.0.2-py3-none-any.whl

Download URL stepTimer-0.0.2-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bae2de726908e365170d794e715463bbf4cb98d151be747d3fbc9f442e36c56
BLAKE2b-256 checksum
How to use checksums
ddde3bf7a6941d28b85b9f487112d2d54ca3dcc26f40d59edf9aeb65b9e0bf28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.27.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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