Skip to content

Commit 4e3fb8e

Browse files
authored
Merge pull request #3377 from stan-dev/fix/gq-timings-read-csv
Detect generated quantities timing in stan_csv_reader
2 parents 4c5180a + e6f8e6c commit 4e3fb8e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/stan/io/stan_csv_reader.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ class stan_csv_reader {
300300
double warmup;
301301
std::stringstream(line.substr(left, right - left)) >> warmup;
302302
timing.warmup += warmup;
303-
} else if (line.find("(Sampling)") != std::string::npos) {
303+
} else if (line.find("(Sampling)") != std::string::npos
304+
|| line.find("(Generated Quantities)")
305+
!= std::string::npos) {
304306
int left = 17;
305307
int right = line.find(" seconds");
306308
double sampling;

0 commit comments

Comments
 (0)