From 169f00c937ce0f351a1b6d1fa3255b6c1ed3c101 Mon Sep 17 00:00:00 2001 From: Jonathan Berrisch Date: Sat, 14 Jun 2025 15:47:15 +0200 Subject: [PATCH] Simplify rcpptimer code block --- index.qmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.qmd b/index.qmd index 583fc03..fc62b63 100644 --- a/index.qmd +++ b/index.qmd @@ -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 +} ``` :::