Another way maybe more precise, use the built-in sys_seconds variable to detect the elapsed time, in your case 2 secs.