forked from M-Labs/artiq
1
0
Fork 0

master: record time run() is called

This commit is contained in:
Chris Ballance 2017-04-26 11:33:10 +01:00 committed by Sébastien Bourdeauducq
parent 0546affd4c
commit 8ebb33c05c
1 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,7 @@ def main():
ipc = pipe_ipc.ChildComm(sys.argv[1])
start_time = None
run_time = None
rid = None
expid = None
exp = None
@ -267,6 +268,7 @@ def main():
exp_inst.prepare()
put_object({"action": "completed"})
elif action == "run":
run_time = time.localtime()
exp_inst.run()
put_object({"action": "completed"})
elif action == "analyze":
@ -285,6 +287,7 @@ def main():
f["artiq_version"] = artiq_version
f["rid"] = rid
f["start_time"] = int(time.mktime(start_time))
f["run_time"] = int(time.mktime(run_time))
f["expid"] = pyon.encode(expid)
put_object({"action": "completed"})
elif action == "examine":