Sign in Join

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

Mailing lists / lazarus / 2010-11

Rev 28494 breaks building lazarus on non-windows (Martin?).

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

Hi,

Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on Linux. GetTickCount is a windows-only call.

Please fix this ASAP.

Michael.

Reply by email

Martin
to Michael Van Canneyt
Michael Van Canneyt wrote 8 lines
Hi, Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on Linux. GetTickCount is a windows-only call. Please fix this ASAP.

Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected)

Reply by email

Felipe Monteiro de Carvalho
to Martin
Martin wrote
Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected)

The usual solution is using EpikTimer

Felipe Monteiro de Carvalho

Reply by email

Vincent Snijders
to Martin: Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that…

2010/11/26 Martin :

Show quoted text 12 lines
On 26/11/2010 10:52, Michael Van Canneyt wrote: > > Hi, > > Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on > Linux. > GetTickCount is a windows-only call. > > Please fix this ASAP. Is there any similar thing on linux?Now() can go backwards (gettickcount wraps, but that can be detected)

http://lazarus-ccr.sourceforge.net/docs/lcl/lclintf/gettickcount.html , but ion linux it uses now.

Vincent

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho: The usual solution is using EpikTimer Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
On Fri, Nov 26, 2010 at 12:00 PM, Martin wrote: > Is there any similar thing on linux?Now() can go backwards (gettickcount > wraps, but that can be detected) The usual solution is using EpikTimer

That would add another (and IMHO unwanted) dependency to the IDE.

You should use fpgettimeofday() on unixes, it comes closest.

And if you can detect wrapping, you can also detect going backwards, unless I'm very much mistaken :)

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt

Op 2010-11-26 13:29, Michael Van Canneyt het geskryf:

> > The usual solution is using EpikTimer That would add another (and IMHO unwanted) dependency to the IDE.

Maybe the question should be.... Isn't it time we move EpikTimer into the FCL? Just about any project that uses some form of timing, EpikTimer is always recommended. So it should be well worth having such a timer as standard in FPC.

[That's obviously ignoring the fact that EpikTimer is not "delphi compatible", because Delphi only uses the Win API's. ;-)]

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Michael Van Canneyt
to Martin
Martin wrote 11 lines
On 26/11/2010 10:52, Michael Van Canneyt wrote: > > Hi, > > Revision 28494 in the cmdlinedebugger.pp (Martin) breaks compiling on > Linux. > GetTickCount is a windows-only call. > > Please fix this ASAP. Solved, sorry about it.

Thank you. Now I can work on the fixes I promised Vincent :-)

Michael.

Reply by email