Skip to content

Instantly share code, notes, and snippets.

@wrathematics
Created June 23, 2020 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wrathematics/f82cd7b822921f69b624edc108ec2826 to your computer and use it in GitHub Desktop.
Save wrathematics/f82cd7b822921f69b624edc108ec2826 to your computer and use it in GitHub Desktop.
f = function(expr)
{
for (i in 1:2)
print(system.time(eval(expr))[[3]])
}
f(Sys.sleep(.4))
## [1] 0.401
## [1] 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment