Created
March 23, 2020 23:41
-
-
Save deanwampler/5d9f08df29911df3248e54574d032b14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start = time.time() | |
objs = [(i, ray.get(rbusy.remote(1.0)), time.time() - start) for i in range(5)] | |
end = time.time() - start | |
print('duration: %6.3f seconds' % (time.time() - start)) | |
for i,obj,t in list(objs): | |
print('%d: %s (time: %6.3f seconds)' % (i, obj, t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment