diff service/reasoning/inference.py @ 45:5b0f970e3d52

/status page, errors on failed graphs, time reports of successful fetches Ignore-this: 14742f2a6237f996d7024ff4454a8057
author drewp@bigasterisk.com
date Sun, 30 Dec 2012 03:02:25 -0800
parents 3f0dd03112b5
children 4cd065b97fa1
line wrap: on
line diff
--- a/service/reasoning/inference.py	Sat Dec 29 04:54:54 2012 -0800
+++ b/service/reasoning/inference.py	Sun Dec 30 03:02:25 2012 -0800
@@ -58,5 +58,8 @@
     return inner
 
 def addTrig(graph, url):
+    t1 = time.time()
     trig = restkit.request(url).body_string()
+    fetchTime = time.time() - t1
     graph.addN(parseTrig(trig))
+    return fetchTime