Convert wait time to milliseconds

@thieman