just add the event and measure the time of it
We measure that switching context time is around: - 20us without optimization, with EventRecorder - 6us without optimization, without EventRecorder - 2us with optimization (o2), without EventRecorder