Simplify rcpptimer code block
This commit is contained in:
@@ -742,12 +742,11 @@ Supports OpenMP parallelism
|
|||||||
|
|
||||||
void main(){
|
void main(){
|
||||||
Rcpp::Timer timer;
|
Rcpp::Timer timer;
|
||||||
Rcpp::Timer::ScopedTimer _(timer, "ST");
|
|
||||||
|
|
||||||
timer.tic();
|
timer.tic();
|
||||||
// Some more code
|
// Code to be timed
|
||||||
timer.toc();
|
timer.toc();
|
||||||
} // ScopedTimer will stop automatically
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|||||||
Reference in New Issue
Block a user