On Mon, May 17, 2010 22:25, spir ⣠wrote:
Hello Denis, > I posted a question about timing some time a go and got an answer; but let > down for a while because other problems required my attention. So, I need > a simple func to get the current time; mainly to benchmark various > implementation choices, possibly for other needs. . . If you need a high-resolution timer and only x86 platforms (or maybe x86_64 too), one option would be using the timer available in http://members.yline.com/~tom_at_work/cpudist.zip (see http://members.yline.com/~tom_at_work/ for link to documentation and further information). A completely platform independent solution included in FPC RTL but with lower precision is using either Dos.GetTime, Dos.GetMsCount or one of functions provided in unit SysUtils (e.g. GetLocalTime, Time or Now). Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal