Clean-up: ustctl: adapt comment to use new ABI name
[lttng-ust.git] / python-lttngust / lttngust / compat.py
1 # -*- coding: utf-8 -*-
2 # SPDX-License-Identifier: LGPL-2.1-only
3 #
4 # Copyright (C) 2020 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
5
6 import sys
7 import time
8
9
10 # Support for deprecation of time.clock().
11 # Deprecated since python 3.3 and removed in python 3.8.
12 # See PEP 418 for more details.
13 def _clock():
14 if sys.version_info > (3,2):
15 clock = time.perf_counter()
16 else:
17 clock = time.clock()
18 return clock
This page took 0.030482 seconds and 4 git commands to generate.