X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=python-lttngust%2Flttngust%2Fagent.py;h=7b750bcc6f96fde62f0dd82a2935a80d678ecc8f;hb=5e15e5e8a7ac066f00e540583c4bd8f0042a3d21;hp=ebfa2de1dbb8abbf0b51eb89556558efe034ea74;hpb=a32694f47853412174b0efe3823fc7d0af6df121;p=lttng-ust.git diff --git a/python-lttngust/lttngust/agent.py b/python-lttngust/lttngust/agent.py index ebfa2de1..7b750bcc 100644 --- a/python-lttngust/lttngust/agent.py +++ b/python-lttngust/lttngust/agent.py @@ -21,6 +21,7 @@ from __future__ import print_function from __future__ import division import lttngust.debug as dbg import lttngust.loghandler +import lttngust.compat import lttngust.cmd from io import open import threading @@ -368,9 +369,9 @@ def _init_threads(): try: dbg._pdebug('waiting for registration done (expecting {}, timeout is {} s)'.format(reg_expecting, cur_timeout)) - t1 = time.clock() + t1 = lttngust.compat._clock() reg_queue.get(timeout=cur_timeout) - t2 = time.clock() + t2 = lttngust.compat._clock() reg_expecting -= 1 dbg._pdebug('unblocked')