[fpc-devel] NowUTC in the RTL
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Fri Dec 9 14:14:59 CET 2011
On Fri, Dec 9, 2011 at 2:00 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
> Afaik the original point was that some people were interested in some kind
> of timestamp that does not jump around (except possibly when overflowing). I
> don't think anyone particularly needed "the time in UTC".
I disagree. I think that getting the current time in UTC is basic
enough to be awarded a routine and has merit on its own, even
disregarding it's usage in profilers.
Not to mention that FPGetTickCount returns it's value in an
unspecified time unit, what if I want a less disturbed time in
miliseconds? A time which doesn't require reading a file to be
obtained? (like the perfect Now() should do in UNIX )
> something like FPGetTickCount seems much more appropriate than NowUTC, and
I think that they do not exclude one another.
> it also solves the problem that some targets may not support returning the
> time in UTC.
I think that Michael already exposed more then enough the holes in
this argument.
--
Felipe Monteiro de Carvalho
More information about the fpc-devel
mailing list