Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Side by Side Diff: third_party/cython/src/Cython/Plex/Timing.py

Issue 385073004: Adding cython v0.20.2 in third-party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference cython dev list thread. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #
2 # Get time in platform-dependent way
3 #
4
5 import os
6 from sys import platform, exit, stderr
7
8 if platform == 'mac':
9 import MacOS
10 def time():
11 return MacOS.GetTicks() / 60.0
12 timekind = "real"
13 elif hasattr(os, 'times'):
14 def time():
15 t = os.times()
16 return t[0] + t[1]
17 timekind = "cpu"
18 else:
19 stderr.write(
20 "Don't know how to get time on platform %s\n" % repr(platform))
21 exit(1)
22
OLDNEW
« no previous file with comments | « third_party/cython/src/Cython/Plex/Scanners.py ('k') | third_party/cython/src/Cython/Plex/Traditional.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698