Skip to content

Instantly share code, notes, and snippets.

@rasmusx
Created September 21, 2017 11:11
Show Gist options
  • Select an option

  • Save rasmusx/0bf2f4b998d4715d6c90385f69ed639b to your computer and use it in GitHub Desktop.

Select an option

Save rasmusx/0bf2f4b998d4715d6c90385f69ed639b to your computer and use it in GitHub Desktop.
Keyboard macro time benchmark
'''
Measure time of keyboard macro.
Modify your macro to send enter in the beginning and end. This is used
to determine start and beginning of macro in this script.
'''
import time
from sys import stdin
print("Send newline to start timing")
stdin.readline()
start = time.time()
stdin.readline()
print(time.time()-start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment