update time for canvas