mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 13:15:25 +07:00
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
23 lines
410 B
Python
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()
|