timeIt: Function to time operation and print start and finish message

Description Usage Arguments Value Author(s) Examples

Description

Function to time operation and print start and finish message

Usage

1
timeIt(expr, msg)

Arguments

expr

an object to be evaluated and timed.

msg

string. A message to be printed

Value

prints out message and time of process. Returns the result of expr

Author(s)

Henrique Cabral

Examples

1
timeIt({sum(rnorm(1000))}, 'Processing...')

cabralhenrique/QPVutils documentation built on May 13, 2019, 10:37 a.m.