- Timestamp:
- Feb 4, 2020 10:09:09 AM (5 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
-
common/utils.py (modified) (1 diff)
-
testdriver/base.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r82640 r82966 1338 1338 # Note! We cannot use time.clock() as the timestamp must be portable across 1339 1339 # processes. See timeout testcase problem on win hosts (no logs). 1340 # Also, time.clock() was axed in python 3.8 (https://bugs.python.org/issue31803). 1340 1341 # 1341 1342 #import sys; -
trunk/src/VBox/ValidationKit/testdriver/base.py
r80237 r82966 155 155 Gets a millisecond timestamp. 156 156 """ 157 if sys.platform == 'win32': 158 return long(time.clock() * 1000); 159 return long(time.time() * 1000); 157 return utils.timestampMilli(); 160 158 161 159 def timestampNano(): … … 163 161 Gets a nanosecond timestamp. 164 162 """ 165 if sys.platform == 'win32': 166 return long(time.clock() * 1000000000); 167 return long(time.time() * 1000000000); 163 return utils.timestampNano(); 168 164 169 165 def tryGetHostByName(sName):
Note:
See TracChangeset
for help on using the changeset viewer.

