Skip to content

Commit 2e38d96

Browse files
committed
fix Stat::switch_ptr()
1 parent c79bcdd commit 2e38d96

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

inst/include/pmt/progress.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,11 @@ class Stat {
7676
{
7777
_speed = 1 / elapsed(_time);
7878

79-
_init_progress();
80-
8179
_statistic_begin = REAL(_statistic.attr("permu"));
8280
_statistic_end = _statistic_begin + Rf_xlength(_statistic.attr("permu"));
8381
_statistic_ptr = _statistic_begin;
8482

85-
_time = std::chrono::steady_clock::now();
83+
_init_progress();
8684
}
8785

8886
bool operator<<(double statistic)

0 commit comments

Comments
 (0)