Get elapsed time before locking mutex in profiler
This commit is contained in:
parent
76c714b158
commit
50cc785998
1 changed files with 2 additions and 1 deletions
|
|
@ -114,8 +114,9 @@ namespace psemek::util
|
|||
|
||||
profiler::~profiler()
|
||||
{
|
||||
auto count = clock_.count();
|
||||
std::lock_guard lock{*(current->mutex)};
|
||||
current->execution_time.push(clock_.count());
|
||||
current->execution_time.push(count);
|
||||
current = current->parent;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue