Added a method to record timing events with extra properties