Search notes:

R function: system.time

system.time executes a function and then reports how long it took to execute it.
system.time(cat("\nHello World\n"))
# Hello World
#    user  system elapsed
#       0       0       0

cat ("\n\n")

set.seed(17)
nof_columns =  120
nof_rows    = 4500
m <- matrix( rnorm (nof_columns * nof_rows), nrow = nof_rows)

system.time( dist(m) )
#    user  system elapsed
#    7.55    0.02    7.61
Github repository about-r, path: /functions/system.time.R

See also

unix.time
Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758200864, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/system_time(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78