auto configure timing function