/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-12-14 23:32:17 UTC
  • mfrom: (4889.2.6 2.1-Dhpss-server)
  • Revision ID: pqm@pqm.ubuntu.com-20091214233217-rwmfxbxwvgj292k0
(jam) -Dhpss now triggers extra logging on the server side.

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.
 
79
timer_func = time.time
 
80
if sys.platform == 'win32':
 
81
    timer_func = time.clock
 
82
 
74
83
# On win32, O_BINARY is used to indicate the file should
75
84
# be opened in binary mode, rather than text mode.
76
85
# On other platforms, O_BINARY doesn't exist, because