Convenience routines for timing.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cs.timeutils-20190220.tar.gz
(2.6 kB
view details)
File details
Details for the file cs.timeutils-20190220.tar.gz.
File metadata
- Download URL: cs.timeutils-20190220.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3075bff8a24aa0847d5714b6e5c3423682c2016210583bd74c766b6b2d73e082
|
|
| MD5 |
44e2c05814cf5e9a2be488d836fd5391
|
|
| BLAKE2b-256 |
72cc2006958576bc79a84bee4b6e84e530b96f0ec987bf8d4e828136a20b240b
|