[core][py] timer for testing