diff --git a/bin/receive_text.py b/bin/receive_text.py index c0e75c7..85806c4 100644 --- a/bin/receive_text.py +++ b/bin/receive_text.py @@ -1,13 +1,15 @@ from __future__ import print_function -import sys, json +import time, sys, json from wormhole.transcribe import Receiver APPID = "lothar.com/wormhole/text-xfer" # we're receiving +start = time.time() code = sys.argv[1] blob = b"{}" r = Receiver(APPID, blob, code) them_bytes = r.get_data() them_d = json.loads(them_bytes.decode("utf-8")) print(them_d["message"]) +print("elapsed time: %.2f" % (time.time() - start))