|
@@ -1,3 +1,5 @@
|
|
|
+import time as python_time
|
|
|
+
|
|
|
class PrimitiveFinished(Exception):
|
|
|
"""Exception to indicate the result value of a primitive, as a return cannot be used."""
|
|
|
def __init__(self, value):
|
|
@@ -578,8 +580,7 @@ def read_taskroot(task_root, **remainder):
|
|
|
raise PrimitiveFinished(task_root)
|
|
|
|
|
|
def time(**remainder):
|
|
|
- import time
|
|
|
- a, = yield [("CNV", [time.time()])]
|
|
|
+ a, = yield [("CNV", [python_time.time()])]
|
|
|
raise PrimitiveFinished(a)
|
|
|
|
|
|
def hash(a, **remainder):
|