From 21c3c47310496b75f177b302e51e73920ecf69bb Mon Sep 17 00:00:00 2001
From: Yannick Ulrich <yannick.ulrich@psi.ch>
Date: Sun, 16 Feb 2020 12:40:58 +0100
Subject: [PATCH] 6: made runtime default more useful towards #12

---
 pymule/vegas.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pymule/vegas.py b/pymule/vegas.py
index 0336eba..fc93a5a 100644
--- a/pymule/vegas.py
+++ b/pymule/vegas.py
@@ -1,6 +1,7 @@
 import struct
 import re
 import numpy as np
+import time
 
 
 def read_record(fp, typ):
@@ -152,7 +153,7 @@ def exportvegas(dic, filename="", fp=None):
     if 'randy' not in dic:
         dic['randy'] = -1
     if 'runtime' not in dic:
-        dic['runtime'] = -1
+        dic['runtime'] = time.clock()
     if 'msg' not in dic:
         dic['msg'] = "Warning: Generated with Python"
 
-- 
GitLab