Sync current time with NTP

The users system clock is not reliable. How would I go about applying an ofset (from NTP) to the animation widget so that when a user clicks on the "live" button I can use this offset + system time?