@Byrein, I have written a few KM Actions that I use just for this purpose.
Perhaps you can adapt for your use.
Macro/Action Timer
Download Set of Actions
Macro/Action Timer.kmactions (2.2 KB)
NOTE: ==When you import this file into your KM Editor, it will, without any notice, insert the Actions in the current Macro, below the current Action that is selected.==
I store this Action set in my KMFAM, which you can get here:
MACRO: [KMFAM] Favorite Actions and Macros