/breezy/3.0

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/3.0

« back to all changes in this revision

Viewing changes to breezy/bzr/smart/request.py

  • Committer: Breezy landing bot
  • Author(s): Vincent Ladeuil
  • Date: 2019-03-06 11:29:23 UTC
  • mfrom: (7304.1.2 3.0)
  • Revision ID: breezy.the.bot@gmail.com-20190306112923-4j11qd9eo5kk8h8i
Release 3.0.0

Merged from https://code.launchpad.net/~vila/brz/3.0.0/+merge/364029

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
        self.finished_reading = False
310
310
        self._command = None
311
311
        if 'hpss' in debug.debug_flags:
312
 
            self._request_start_time = osutils.timer_func()
 
312
            self._request_start_time = osutils.perf_counter()
313
313
            self._thread_id = get_ident()
314
314
 
315
315
    def _trace(self, action, message, extra_bytes=None, include_time=False):
318
318
        # that just putting it in a helper doesn't help a lot. And some state
319
319
        # is taken from the instance.
320
320
        if include_time:
321
 
            t = '%5.3fs ' % (osutils.timer_func() - self._request_start_time)
 
321
            t = '%5.3fs ' % (osutils.perf_counter() - self._request_start_time)
322
322
        else:
323
323
            t = ''
324
324
        if extra_bytes is None: