Subject: cost of gettimeofday()
To: None <current-users@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 03/08/2002 11:50:24
So, it looks like some KVM switches simply *SILENTLY* change protocols.  No
warnings, no nothing; one minute, you're getting 4 bytes per mouse event, the
next, you're getting 3.

So...

One result of this is that, if you click, and then release, you're getting
almost a full mouse event, then a pause, and then the beginning of another.

This pause is, I suspect, detectably longer than the delay between adjacent
bytes of real mouse input.

So, if I changed psm.c to call gettimeofday() every time it got a byte of
data, check for long delays... Is this a bad idea?

-s