Queue with time measurement