The following line can trigger a division by zero:
print("Recorded %d flip stalls and %d PB commands (%.2f commands / second)" % (flipStallCount, commandCount, commandCount / duration))
This will likely happen if hooking into the PB failed and the timer resolution is too low.
The following line can trigger a division by zero:
This will likely happen if hooking into the PB failed and the timer resolution is too low.