from __future__ import print_function
import sys, json
from wormhole.transcribe import Receiver

APPID = "lothar.com/wormhole/text-xfer"

# we're receiving
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"])

@@ -37,16 +37,22 @@
 n%0Aimport
+ time,
  sys, js
@@ -54,16 +54,16 @@
 s, json%0A
-
 from wor
@@ -155,16 +155,36 @@
 ceiving%0A
+start = time.time()%0A
 code = s
@@ -313,16 +313,16 @@
 tf-8%22))%0A
-
 print(th
@@ -338,8 +338,60 @@
 sage%22%5D)%0A
+print(%22elapsed time: %25.2f%22 %25 (time.time() - start))%0A

print elapsed time