measure how fast the context switch is