Read the device uptime in seconds with now().
now()
let uptime = now(); print('Uptime Seconds: ',uptime);