Simplify rcpptimer code block

This commit is contained in:
2025-06-14 15:47:15 +02:00
parent ee421bf1e0
commit 169f00c937

View File

@@ -742,12 +742,11 @@ Supports OpenMP parallelism
void main(){
Rcpp::Timer timer;
Rcpp::Timer::ScopedTimer _(timer, "ST");
timer.tic();
// Some more code
// Code to be timed
timer.toc();
} // ScopedTimer will stop automatically
}
```
:::