# NOT RUN {
# Basic use (global stopwatch)
tic()
Sys.sleep(0.1)
toc()
# Multiple tic tocs
tic(id = "two", quiet = FALSE)
Sys.sleep(0.2)
toc(id = "two")
# Global is still working (id = 1)
toc(msg = "The function finished its work in")
# }
Run the code above in your browser using DataLab