delayt {cwhmisc}R Documentation

Waiting loop for program execution

Description

Wait for approximately sec seconds during program execution

Usage

  delayt(sec) # wait for sec seconds
  nrof <- delayt(sec) # save the number of internal calls of Sys.time(). Can be used to compare the relative execution speed of different processors.

Arguments

sec Number of seconds to wait

Details

calls Sys.time()

Value

the number of internal calls of Sys.time()

Author(s)

Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN

Examples

  Sys.time(); nrof <- delayt(5); Sys.time()
  print(nrof) # 2620 on my machine

[Package cwhmisc version 2.0.1 Index]