tic function

Implementation of Matlab tic() command

Implementation of Matlab tic() command

Used in conjunction with toc() to find the elapsed time when code is executed.

tic(type = c("elapsed", "user.self", "sys.self"))

Arguments

  • type: can be either "elapsed" "user.self" or "sys.self"

Returns

time tic was called

Examples

tic() Sys.sleep(3) toc()

See Also

toc

  • Maintainer: John Harrold
  • License: BSD_2_clause + file LICENSE
  • Last published: 2025-01-07