set epoch at end of InitWindow