An eight-minute stretch of the third quarter was all the Knicks needed to turn a double-digit deficit into an insurmountable lead.

Tim Hardaway Jr. scored a career-high 38 points, including 12 during a 28-0 run in the third that sent the Knicks to a 108-100 victory over the Toronto Raptors on Wednesday night.

Kristaps Porzingis added 22 points and 12 rebounds for the Knicks, who outscored the Raptors by 41-10 in the decisive period.

“At halftime we had some strong words for each other, we talked about stuff we wanted to do better and we came out in the second half looking like a different team,” Porzingis said.