Files
openide/python/helpers/debugpy/common/timestamp.py
maxim.popovandintellij-monorepo-bot 524e00b045 maximpopov/82196-Implement-debugpy-DAP-client-ultimate-only
PY-82992 [debugger] add run configurations for Python DAP (debugpy)

- adds launch (Python DAP) and attach (Attach to DAP) configurations in PyCharm
- adds debugpy to community/python/helpers/


Merge-request: IJ-MR-173477
Merged-by: Maxim Popov <maxim.popov@jetbrains.com>

GitOrigin-RevId: ec4cf18be27050a934662834bed6812b3016578b
2025-09-01 19:07:52 +00:00

23 lines
410 B
Python

# 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()