Learn R Programming

APfun (version 0.1.6)

APtimer: AP Timer

Description

Basic timer.

Usage

APtimer(marker = NULL, hush = FALSE)

Arguments

marker

Optional object of class 'POSIXct'.

hush

logical. If set to TRUE, this will silence printing to console.

Value

If marker=NULL, then APtimer returns an object of class 'POSIXct'. When this same object is used as an input later on, then APtimer will print the time elapsed since it was evaluated.