Skip profile calculation if total time is 0. Closes #5.