Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/win32.py @ 250:acd70a60bc17
Finished embracing time.monotonic in Python code
_unix does not use monotonic clocks yet.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 19 Jan 2014 00:50:27 +0000 |
parents | ebb35960b5bc |
children | d3a5d1929ad2 |
comparison
equal
deleted
inserted
replaced
247:f5847d29e838 | 250:acd70a60bc17 |
---|---|
1 # Copyright (c) 2010-2012 Chortos-2 <chortos@inbox.lv> | 1 # Copyright (c) 2010-2014 Chortos-2 <chortos@inbox.lv> |
2 | 2 |
3 from __future__ import division, with_statement | 3 from __future__ import division, with_statement |
4 | 4 |
5 from .compat import * | 5 from .compat import * |
6 from .exceptions import * | 6 from .exceptions import * |
7 | 7 |
8 from ctypes import * | 8 from ctypes import * |
9 from ctypes.wintypes import * | 9 from ctypes.wintypes import * |
10 from msvcrt import getch as pause | 10 from msvcrt import getch as pause |
11 from time import clock | |
12 import os, subprocess, sys, time | 11 import os, subprocess, sys, time |
12 | |
13 try: | |
14 from time import monotonic as clock | |
15 except ImportError: | |
16 from time import clock | |
13 | 17 |
14 try: | 18 try: |
15 from _winreg import * | 19 from _winreg import * |
16 except ImportError: | 20 except ImportError: |
17 from winreg import * | 21 from winreg import * |