R/report_time.R

Defines functions report_time

report_time <- function(t1, 
                        func=NULL,
                        verbose=TRUE){
    messager(if(!is.null(func))paste0(func,"():"),
             "Done in",
             paste0(round(difftime(Sys.time(),t1,units = "s"),1),"s."),
             v=verbose)
}
neurogenomics/EpiCompare documentation built on Oct. 18, 2024, 11:04 p.m.