pause on all thread yields; pair pause/resumeHooks calls correctly
never double-count execution time
correct indentation
Merge pull request #312 from mykmelez/profile-accurately

profile accurately (fixes #310)