"It is the only race that can hurt you that much, so to back up after winning the Points race last night, I was really happy with that."
Williams set the morning session alight in qualifying when he clocked 1:00.447 in the men's 1km time trial; the fastest time by a New Zealander at sea level, beating the previous mark held by world championship medallist Matt Archibald.
He also broke the New Zealand all-comers record held by London Olympic medallist Simon van Velthooven.
It was a New Zealand trifecta in the final with Williams forced to fight hard to clock a winning time of 1:00.825 to beat Bradly Knipe (1:01.429) and Nick Kergozou (1:01.517).
"I am absolutely stoked. The record this morning was a bit unexpected but to do that time and beating the guys I know that have gone sub 1:01 in New Zealand history is pretty cool," said Williams.
"It is hard doing two rides with the new format. You really have to dig deep in that second ride and nine times out of 10 it is never going to be as fast as the first one.
"We had a few execution issues in that ride but I am still over the moon with the title."
Australian world champion Jordan Kerby produced a ride of brilliance to win the men's 4000m individual pursuit in 4:13.529, only 1s outside his time in winning the world title.
In doing so he smashed the New Zealand all comers record set by Jesse Sergent in 2012.