QMCPACK / QMCPACK/qmcpack

Replace timer start/stop with ScopedTimer

Open
#3,869 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
403
Forks
154
Avg merge
1d 12h
Merged PRs (30d)
82

Description

**Describe the bug**
timer start/stop doesn't work well with exceptions. If a timer stop is missed during exception, another exception can raise due to timer mismatch. We should replace all timer start/stop with well defined scopes.

**To Reproduce**
Steps to reproduce the behavior:
make getrf fail in DiracMatrix.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.