$duration($uptime(system,3))
without the 3 (check /help $uptime) it returns in milliseconds, when $duration takes seconds