Imo, it's mostly luck. Basically, you try to hit a certain time down to the hundredth of a second, it can take some practice, but it's mostly trial and error, not something that there's a real trick to. >.>
(though, if there is a trick, I don't know it xP)
(though, if there is a trick, I don't know it xP)