~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-14 16:16:05 UTC
  • mto: (4896.1.3 2.1.0b4-dev)
  • mto: This revision was merged to the branch mainline in revision 4898.
  • Revision ID: john@arbash-meinel.com-20091214161605-ifvx2fwd2b7rlvsf
Review feedback from Andrew.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
from bzrlib import symbol_versioning
72
72
 
73
73
 
 
74
# Cross platform wall-clock time functionality with decent resolution.
 
75
# On Linux ``time.clock`` returns only CPU time. On Windows, ``time.time()``
 
76
# only has a resolution of ~15ms. Note that ``time.clock()`` is not
 
77
# synchronized with ``time.time()``, this is only meant to be used to find
 
78
# delta times by subtracting from another call to this function.
74
79
timer_func = time.time
75
80
if sys.platform == 'win32':
76
81
    timer_func = time.clock