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=6327, NAME=R, AT=2024-01-21 20:57:52.64
ps_create_time(p)
#> [1] "2024-01-21 20:57:52 GMT"