Time since last command

Is it possible to get the real time since the last command was entered? For my purposes, it doesn’t even need to be a real time, it could be a simple counter of some sort. So, is there a way to measure elapsed time between two successive commands? Thanks!

there’s extensions on the official inform site. one is called ‘real date and time’ which allows that