[lug] keystroke statistics
CAtkinson at Circadence.com
Mon Apr 16 10:49:12 MDT 2001
No, for "simple" keys you get two, a key press and key release. For things
like up arrow, you get 4 interrupts. Probably because an up arrow is a
combination of an escape and something else. You'd be hard pressed to get
the exact number of keystrokes by just dividing by two since you might press
the up arrows for keyboard editing some times.
> -----Original Message-----
> From: Todd Ruskell [mailto:truskell at Mines.EDU]
> Sent: Monday, April 16, 2001 10:38 AM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] keystroke statistics
> Is that a binary number? Empirically, it looks like it must be. For
> example, if I simply do an "up-arrow" and "return" to repeat
> the previous
> command, the value goes from
> which is consistent with a binary, so you'd have to make sure
> and work in
> the proper base.
> "Riggs, Robert" wrote:
> > I'd go for the ridiculously simple... "grep keyboard
> /proc/interrupts" at
> > the start and end of the day and subtract.
> Todd Ruskell, Ph.D.
> Lecturer in Physics
> Colorado School of Mines
> Golden, CO 80401
> Fax: 303-273-3919
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG