working real ping-pong and time measurement