Getting the current time

 
Can anyone tell me how to get the current time? CurTime is pretty worthless as the server time is not updated consistantly. Not knocking anything here, but I need to know EXACTLY what time a price tick comes in.

Thanks in advance,
 
One more thing...using the iTime function suffers from the same problem. This may seem fine to MetaQuote and the MQ4/MQL programmers, but, quite frankly, it forces exception coding on my part and that is unacceptable. That's my view as a programmer of 20 years. Everyone's entitled to their own opinion.

Regards
 
use LocalTime function
iTime returns opening bar's time
 
Thanks Slawa...that did the trick
Reason: