show code run time in output #5179
Liripo
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
This can be easily achieved at least to measure computation, i.e., you can't really measure the whole rendering process because you would need to write the output then inject the run time in it1. For example with ---
title: "Quarto Demo"
format: html
---
```{r}
start_time <- Sys.time()
```
Something is wrong with the code below. It should be printing the current time, but it's not. Can you fix it?
```{r}
Sys.sleep(10)
```
```{r}
Sys.time() - start_time
``` Footnotes |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As shown in the vscode IDE, if you can include the execution time of the code in the output, it will be very useful for writing test reports, or writing tutorial documents.
Beta Was this translation helpful? Give feedback.
All reactions