measureTime function

Measure Runtime of a Feature Computation

Measure Runtime of a Feature Computation

Simple wrapper around proc.time.

measureTime(expr, prefix, envir = parent.frame())

Arguments

  • expr: [expression]

    Expression of which the time should be measured.

  • prefix: [character(1)]

    Name of the corresponding feature set. Used as a prefix for the runtime.

  • envir: [environment]

    Environment in which expr should be evaluated.

Returns

Returns the value(s) of the evaluated expr and adds two additional attributes: the number of function evaluations costs_fun_evals and the runtime costs_runtime, which was required for evaluating the expression.

  • Maintainer: Pascal Kerschke
  • License: BSD_2_clause + file LICENSE
  • Last published: 2020-03-31