Skip to content

Commit 8db8a02

Browse files
committed
fix check in timer::finish() when WARNING_QUIT
1 parent 083a260 commit 8db8a02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/source_base/timer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ std::map<std::string,std::map<std::string,timer::Timer_One>> timer::timer_pool;
3232

3333
void timer::finish(std::ofstream &ofs, const bool print_flag, const bool check_end)
3434
{
35-
timer::end("","total");
35+
if(!timer_pool[""]["total"].start_flag)
36+
{ timer::end("","total"); }
3637
if(print_flag)
3738
{ print_all( ofs, check_end ); }
3839
}

0 commit comments

Comments
 (0)