Download my_env/lib/python3.10/site-packages/debugpy/common/timestamp.py from Miras-P/KazDALLE: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/Miras-P/KazDALLE/resolve/main/my_env/lib/python3.10/site-packages/debugpy/common/timestamp.py
- Command line
-
hf download hf://Miras-P/KazDALLE/my_env/lib/python3.10/site-packages/debugpy/common/timestamp.py
-
curl -L -o timestamp.py https://huggingface.co/Miras-P/KazDALLE/resolve/main/my_env/lib/python3.10/site-packages/debugpy/common/timestamp.py
410 Bytes
| # Copyright (c) Microsoft Corporation. All rights reserved. | |
| # Licensed under the MIT License. See LICENSE in the project root | |
| # for license information. | |
| """Provides monotonic timestamps with a resetable zero. | |
| """ | |
| import time | |
| __all__ = ["current", "reset"] | |
| def current(): | |
| return time.monotonic() - timestamp_zero | |
| def reset(): | |
| global timestamp_zero | |
| timestamp_zero = time.monotonic() | |
| reset() | |