Time tracking through machine sleep