---
title: "Timing R code"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{Timing R code}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

# Example usage 1

```{r, fig.width=7.5}
set.seed(123)
n <- 10000L
misc::timeit(rweibull(n, 2, 3))
```

# Example usage 2

```{r, fig.width=7.5}
set.seed(123)
n <- 10000L
misc::timeit(rweibull(n, 2, 3), times = 100)
```