Messages in this thread | | | Date | Mon, 06 Oct 2003 20:37:35 +0200 | From | Hans-Georg Thien <> | Subject | Re: getting timestamp of last interrupt? |
| |
Gabriel Paubert wrote:
>>> [...] >>>>I am looking for a possibility to read out the last timestamp when an >>>>interrupt has occured. >>>>[...] > > > Doesn't the input layer add a timestamp to every event? > > At least that's the impression I have from xxd /dev/input/eventN: the > first eight bytes of each 16 bytes packet look so furiously close to > a struct timeval that they can't be anything else :-) > > Just that I don't know how the devices and N are associated, it seems to be > order of discovery/registering at boot. Hello Gabriel,
Oh yes, - that looks quite good to me. I'm investigating on that now. I found out, that you need at least to compile the "evdev" module.
-Hans
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |