modified getUptime to be more accurate