X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=python-lttngust%2Flttngust%2Fagent.py;h=7b750bcc6f96fde62f0dd82a2935a80d678ecc8f;hp=ebfa2de1dbb8abbf0b51eb89556558efe034ea74;hb=e7bf49685071a4d78dca463c371c02901af90d77;hpb=50170875992c5de7d6fcc1b3f953502391a8e82b 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')