rename 'lap' function to 'toc' for clarity