Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-12

timer with a resolution of a microsecond ?

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dean Zobec

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

Reply by email

Lee, John

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

Earlier message 19 lines
-----Original Message----- From: Dean Zobec Sent: 07 December 2003 10:10 To: 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.

Reply by email