diff options
Diffstat (limited to 'Cython/Plex/Timing.py')
-rw-r--r-- | Cython/Plex/Timing.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Cython/Plex/Timing.py b/Cython/Plex/Timing.py deleted file mode 100644 index 5c3692693..000000000 --- a/Cython/Plex/Timing.py +++ /dev/null @@ -1,23 +0,0 @@ -# -# Get time in platform-dependent way -# - -from __future__ import absolute_import - -import os -from sys import platform, exit, stderr - -if platform == 'mac': - import MacOS - def time(): - return MacOS.GetTicks() / 60.0 - timekind = "real" -elif hasattr(os, 'times'): - def time(): - t = os.times() - return t[0] + t[1] - timekind = "cpu" -else: - stderr.write( - "Don't know how to get time on platform %s\n" % repr(platform)) - exit(1) |