Skip to content

The pid and the start time pair serves as the identifier of the process, as process ids might be reused, but the chance of starting two processes with identical ids within the resolution of the timer is minimal.

Usage

ps_create_time(p = ps_handle())

Arguments

p

Process handle.

Value

POSIXct object, start time, in GMT.

Details

This function works even if the process has already finished.

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=6015, NAME=R, AT=2024-10-29 08:51:51.83
ps_create_time(p)
#> [1] "2024-10-29 08:51:51 GMT"