[fpc-devel]timer with a resolution of a microsecond ?

Lee, John John.Lee at logicacmg.com
Mon Dec 8 13:18:35 CET 2003


I always use Tomas Schatzl's cpu stuff available from
http://members.yline.com/~tom_at_work/cpudist.zip. It's available for
go32v2, linux, win32 & maybe others too...hth Regards John 

-----Original Message-----
From: Dean Zobec [mailto:dezobec at tin.it]
Sent: 07 December 2003 10:10
To: fpc-devel at lists.freepascal.org
Subject: [fpc-devel]timer with a resolution of a microsecond ?


In my current project, a port of JUnit to fpc, I need to calculate the 
execution time of the tests. My target platform is Linux/i386, but I would 
like it to work on other platforms too. Any suggestion?

Another question, what's the correct way to provide functions in a fpc unit 
that are platform specific? Looking at the RTL source it seems that you 
prefer to put this function in an .inc file, right? I don't like my code 
being messed up with ifdefs.
Thank you,
Dean

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




More information about the fpc-devel mailing list