Yes, this is possible.
How much accuracy do you need in your timestamp?
If you just want to use local time, Rex Date plugin will give you timestamps from the system clock that the JavaScript is running on presently. If you need to access a more accurate time source (like a timing server), you can do an AJAX call and parse the time using a modified version of the Rex Date plugin that I can send you.
Rex Date: http://c2rexplugins.weebly.com/rex_date.html
Then you could just store the timestamp, mouse.X, mouse.Y in Arrays, Hashmaps, etc. every tick (per ~1/60 sec), or once per second.