We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a2063 commit 6ffb865Copy full SHA for 6ffb865
unittests/main_test.py
@@ -52,9 +52,14 @@
52
print("test_function() ok");
53
54
// Test binding external object and use of javascript<>python callbacks
55
+ var start_time = new Date().getTime();
56
+ print("[TIMER] Call Python function and then js callback that was"+
57
+ " passed (Issue #277 test)");
58
external.test_callbacks(function(msg_from_python, py_callback){
59
if (msg_from_python == "String sent from Python") {
60
print("test_callbacks() ok");
61
+ var execution_time = new Date().getTime() - start_time;
62
+ print("[TIMER]: Elapsed = "+String(execution_time)+" ms");
63
} else {
64
throw new Error("test_callbacks(): msg_from_python contains"+
65
" invalid value");
0 commit comments