From 065f2fa14249f2a6e9e92c6c901a48982d59214d Mon Sep 17 00:00:00 2001 From: Jonathan Berrisch Date: Tue, 24 Jun 2025 14:53:38 +0200 Subject: [PATCH] Update c++ snippet --- index.html | 765 +++++++++++++++++++++++++++-------------------------- index.qmd | 5 +- 2 files changed, 386 insertions(+), 384 deletions(-) diff --git a/index.html b/index.html index 3300d4f..90151a4 100644 --- a/index.html +++ b/index.html @@ -25894,13 +25894,14 @@ Berrisch, J. (
//[[Rcpp::depends(rcpptimer)]]
 #include <rcpptimer.h>
 
-void main(){
-  Rcpp::Timer timer;
-
-  timer.tic();
-  // Code to be timed
-  timer.toc();
-}
+//[[Rcpp::export]] +void ex() +{ + Rcpp::Timer timer; + timer.tic(); + // Code to be timed + timer.toc(); +}
@@ -25951,7 +25952,7 @@ Berrisch, J. (
- +
@@ -25959,7 +25960,7 @@ Berrisch, J. (
- +
@@ -25967,190 +25968,190 @@ Berrisch, J. (
- +
@@ -27232,7 +27233,7 @@ Y_{t} = \mu + Y_{t-1} + \varepsilon_t \quad \text{with} \quad \varepsilon_t = \
- +
@@ -27240,194 +27241,194 @@ Y_{t} = \mu + Y_{t-1} + \varepsilon_t \quad \text{with} \quad \varepsilon_t = \
- +
diff --git a/index.qmd b/index.qmd index c6c2059..a1bd76d 100644 --- a/index.qmd +++ b/index.qmd @@ -713,9 +713,10 @@ Supports OpenMP parallelism //[[Rcpp::depends(rcpptimer)]] #include -void main(){ +//[[Rcpp::export]] +void ex() +{ Rcpp::Timer timer; - timer.tic(); // Code to be timed timer.toc();