Compute cpu times using base::proc.time()
and mass storage using
base::gc()
Arguments
- compute_mass_storage
(logical, default TRUE) Do the mass storage is computed from
base::gc()
function
Examples
session_runtime()
#> $cpu_times_users
#> user.self
#> 7.796
#>
#> $cpu_times_system
#> user.child
#> 2.005
#>
#> $time_elapsed
#> elapsed
#> 13.732
#>
#> $cpu_times
#> user.self
#> 9.801
#>
#> $mass_storage_used
#> [1] 236.2
#>
#> $mass_storage_max
#> [1] 358.5
#>
session_runtime(compute_mass_storage = FALSE)
#> $cpu_times_users
#> user.self
#> 8.264
#>
#> $cpu_times_system
#> user.child
#> 2.005
#>
#> $time_elapsed
#> elapsed
#> 14.201
#>
#> $cpu_times
#> user.self
#> 10.269
#>