I would like to know how many seconds have passed since the last keystroke (or character that showed up in the screen, whatever is easier).
Is there a timer that is associated to self-insert-command
? Alternatively, what is a simple way to achieve my goal?