R/nanotime.R

Defines functions get_nanotime

Documented in get_nanotime

#' Return the current value of the platform timer.
#'
#' The current value of the most accurate timer of the platform is
#' returned. This can be used as a time stamp for logging or similar
#' purposes. Please note that there is no common reference, that is,
#' the timer value cannot be converted to a date and time value.
#' 
#' @author Olaf Mersmann
get_nanotime <- function() {
  .Call(do_get_nanotime, PACKAGE="microbenchmark")
}

Try the microbenchmark package in your browser

Any scripts or data that you put into this service are public.

microbenchmark documentation built on April 29, 2023, 1:12 a.m.