# time how long it takes to complete a task:
pre.time <- Sys.time()
for (i in 1:10000000) hold <- exp(100) # PROCESS TO TIME
post.time <- Sys.time()
timestring(pre.time, post.time)
# Convert 4687 seconds into hours:
timestring(4687, units='hours', show.units=FALSE)
Run the code above in your browser using DataLab