R/CRset_timer_resolution.R

#' Set the Windows OS timer resolution

CRset_timer_resolution <- function(resolution) {

  if ( !is.numeric(resolution) ) {
    stop("Timer resolution must be numeric.")
  }
  
  resout <- .Call("SDLset_timer_resolution", resolution, PACKAGE = "SDLDLL")
  
  return(resout)
}
lorweiuk/CREx documentation built on May 30, 2019, 3:44 p.m.