Displaying 1 result from an estimated 1 matches for "secornd".
Did you mean:
second
2007 Apr 23
1
Extracing "Interval of Time" in seconds in R
...uot;End of Program at", Ending, "\n" )
return(print(final.result, quote = FALSE))
}
#############################
But how about I want the results in difference of
statring and ending time in seconds only (say, in
output, I need the
function to say that "the program took 597 secornds to
run the whole simulation"), not in all these
format(Sys.time(), "%a
%b %d %H:%M:%S %Y")
Again, I tried in the following way, but it does not
seem to do the trick
> starting<-Sys.time()
> ending<-Sys.time()
> format(diff(ending,starting), "%H:%M:%S")
E...