Comment by lostmsu
I don't know about Linux, but in Windows all input messages come with a timestamp, so even if you happen to process it later you should know when the key was actually pressed. That might help when simulating physics, animation or other stuff.
A timestamp won't help if your goal is reducing game lag. You can tell you're lagging, but can't do anything about it.