Description Usage Arguments Value Author(s) Examples
Functions and methods for extracting and printing timings in human-readable format.
1 2 3 4 5 6 |
x |
|
fmt |
format string as required by |
expr |
see |
print |
|
human |
|
... |
for |
named character(3)
providing
user, system and elapsed time in human-readable format.
object of class "gnn_proc_time"
.
x
(invisibly).
Marius Hofert
1 2 3 4 5 6 7 8 9 10 | if(TensorFlow_available()) { # rather restrictive (due to R-Forge, winbuilder)
library(gnn) # for being standalone
human.time(Sys.sleep(0.1)) # print human-readable time
(proc.obj <- human.time(Sys.sleep(0.1), print = FALSE)) # save the timing (character(3))
fnn <- FNN()
time(fnn) # default print method for objects of class "gnn_proc_time"
time(fnn, human = TRUE) # human-readable print method for such objects
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.