neurogenomics / EpiCompare

Comparison, benchmarking & QC of epigenetic datasets
https://doi.org/doi:10.18129/B9.bioc.EpiCompare
13 stars 3 forks source link

Add timer to `EpiCompare::EpiCompare` #73

Closed bschilder closed 2 years ago

bschilder commented 2 years ago

Would be useful to have a report on how long a single run of EpiCompare took.

You can add this inside the EpiCompare::EpiCompare function, or even within the RMD it renders (so you can print the time it took within the html output itself, somewhere at the bottom).

t1 <- Sys.time()

<lots of code or code chunks>

t2 <- Sys.time()
methods::show( difftime(t2, t1, units = "min") )
# Time difference of 0.05845327 mins