update window time