Convenience routines for timing.
Latest release 20211208: Move the TimeoutError definiton to cs.gimmicks.
Function ISOtime(gmtime)
Produce an ISO8601 timestamp string from a UNIX time.
Function sleep(delay)
time.sleep() sometimes sleeps significantly less that requested.
This function calls time.sleep() until at least delay seconds have
elapsed, trying to be precise.
Function time_from_ISO(isodate, islocaltime=False)
Parse an ISO8601 date string and return seconds since the epoch. If islocaltime is true convert using localtime(tm) otherwise use gmtime(tm).
Function time_func(func, *args, **kw)
Run the supplied function and arguments. Return a the elapsed time in seconds and the function's own return value.
Function tm_from_ISO(isodate)
Parse an ISO8601 date string and return a struct_time.
Release Log
Release 20211208: Move the TimeoutError definiton to cs.gimmicks.
Release 20190220: Backport for older Pythons.
Release 20190101: Define TimeoutError only if missing.
Release 20170608: Trivial changes, nothing semantic.
Release 20150116: PyPI initial prep.
Metadata
Release files for cs.timeutils 20211208
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.timeutils-20211208.tar.gz | 2.9 kB | Without provenance | Details for cs.timeutils-20211208.tar.gz |
Release files / cs.timeutils-20211208.tar.gz
| Download URL | cs.timeutils-20211208.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d8c076498f294af9037cd45815c807f2ce1ce5915ecb3c4ac41e5c2c159bbe2
|
|
BLAKE2b-256 checksum How to use checksums |
dc7d9f16ba707154be12c5e489ea5a60c2815b1c8cb2c705793f9bb8dacbb3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
|
Security for cs.timeutils 20211208
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.