Updated version with -t for total and -q when used with -t just outputs date and total time