Determine and print circuit triggering time.
Move getSourcePort() to util.py.