website time synchronization?

I can only log into a website website a specified time before an event. My script logs in about a minute after the allowable log in time to be safe but I’d like to drop this time down to a couple of seconds. Is there anyway to find out what time the website has and how to ensure a correct timed login event?