Please drop the `time` parameter: it's no use at this level of the code. You can always track the event reaching the JS space and hava  timer there. Why over-complicating things here?