blob: 306d8daa48dfc678e418ab248be3bf669ea23444 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- libSBML-5.18.0-Source/examples/python/readSBML.py~ 2018-04-24 10:35:07.000000000 +0200
+++ libSBML-5.18.0-Source/examples/python/readSBML.py 2019-06-18 12:09:58.564685207 +0200
@@ -54,7 +54,7 @@
return 1
filename = args[1]
- current = time.clock()
+ current = time.process_time()
document = readSBML(filename)
errors = document.getNumErrors()
@@ -62,7 +62,7 @@
print()
print(" filename: " + filename)
print(" file size: " + str(os.stat(filename).st_size))
- print(" read time (ms): " + str(time.clock() - current))
+ print(" read time (ms): " + str(time.process_time() - current))
print(" validation error(s): " + str(errors))
print()
document.printErrors()
|