Time modeling in high-speed machining of mold pocket