Simple wrapper around proc.time.

measureTime(expr, feature.set.name, append.as.feature = FALSE,
  envir = parent.frame())

Arguments

expr

[expression]
Expression the time should be measured.

feature.set.name

[character(1)]
Name of the corresponding feature set. Used as a prefix for the cost feature.

append.as.feature

[logical(1)]
Should the computational effort in seconds be saved as an additional feature? Default is FALSE.

envir

[environment]
Environment in which expr should be evaluated.

Value

Return value of evaluated expr with additional attribute “time_elapsed”.