Get how long the mouse and keyboard have been inactive for, or reset the inactivity timer. This can be used to do things like preventing a screensaver from kicking in; tkchat uses it (in read mode) to set the user's status to "Away" when people are busy.
Other idle time tracking facilities: