Download lib/python3.9/site-packages/Cython/Plex/Timing.py from camenduru/slahmr-test: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/Cython/Plex/Timing.py
- Command line
-
hf download hf://camenduru/slahmr-test/lib/python3.9/site-packages/Cython/Plex/Timing.py
-
curl -L -o Timing.py https://huggingface.co/camenduru/slahmr-test/resolve/main/lib/python3.9/site-packages/Cython/Plex/Timing.py
472 Bytes
| # | |
| # Get time in platform-dependent way | |
| # | |
| from __future__ import absolute_import | |
| import os | |
| from sys import platform, exit, stderr | |
| if platform == 'mac': | |
| import MacOS | |
| def time(): | |
| return MacOS.GetTicks() / 60.0 | |
| timekind = "real" | |
| elif hasattr(os, 'times'): | |
| def time(): | |
| t = os.times() | |
| return t[0] + t[1] | |
| timekind = "cpu" | |
| else: | |
| stderr.write( | |
| "Don't know how to get time on platform %s\n" % repr(platform)) | |
| exit(1) | |