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 | |
|---|---|---|---|
| cs.timeutils-20211208.tar.gz | 2.9 kB | Details |
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
|