Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Sven Barth
Am 22.02.2011 16:02, schrieb Bo Berglund: Have to look elsewhere. The only really usable solution might be to attach an external time source to your PC and use that time signal. I don't know of a suitable hardware though (I haven't yet done anything related to such accurate timings).

Re: [Lazarus] startup problem

2011-02-23 Thread Xiangrong Fang
Hi Mattias, I confirm that the file is installed on this path: /usr/lib/lazarus/0.9.31/lcl/units/x86_64-linux/registerlcl.{o|ppu} But lazarus still complain that it cannot find that unit on startup. 2011/2/23 Mattias Gaertner nc-gaert...@netcologne.de On Wed, 23 Feb 2011 12:26:07 +0800

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Lukasz Sokol
On 22/02/2011 15:02, Bo Berglund wrote: Thanks, I have now tested it (on Windows) and found that although the QueryPerformanceCounter gives more resolution it is also drifting compared to real time (77 ms in 30 s) making it rather unusable... It would be good for a highres timer but not

Re: [Lazarus] startup problem

2011-02-23 Thread Mattias Gaertner
  Xiangrong Fang xrf...@gmail.com hat am 23. Februar 2011 um 09:54 geschrieben: Hi Mattias, I confirm that the file is installed on this path: /usr/lib/lazarus/0.9.31/lcl/units/x86_64-linux/registerlcl.{o|ppu} But lazarus still complain that it cannot find that unit on startup.  

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Sven Barth
Am 23.02.2011 10:04, schrieb Graeme Geldenhuys: Op 2011-02-23 10:50, Sven Barth het geskryf: I don't know of a suitable hardware though (I haven't yet done anything related to such accurate timings). I have heard of users using something as simple as GPS devices. What accuracy that gives, I

Re: [Lazarus] startup problem

2011-02-23 Thread Xiangrong Fang
Hi Mattias, LCLBase 1.0, *not* 1.01, but *under that*, FCL is at 1.0.1 Sincerely, Shannon 2011/2/23 Mattias Gaertner nc-gaert...@netcologne.de Xiangrong Fang xrf...@gmail.com hat am 23. Februar 2011 um 09:54 geschrieben: Hi Mattias, I confirm that the file is installed on this path:

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-02-23 Thread Michael Schnell
On 02/22/2011 04:32 PM, Hans-Peter Diettrich wrote: Generic types should never evolve in a breaking way. The generic type String once was intended to hold entities of the generic type char (=character), and char was meant to hold a complete (maybe) printable thingy in an 8 bit encoding. So

Re: [Lazarus] startup problem

2011-02-23 Thread Mattias Gaertner
  Xiangrong Fang xrf...@gmail.com hat am 23. Februar 2011 um 11:42 geschrieben: LCLBase 1.0, not1.01, but under that, FCL is at 1.0.1   Check via the Package / Package Graph what lclbase.lpk file is used and if it is 1.0.1.  

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Petr Kristan
On Sun, Feb 20, 2011 at 02:46:34PM +0100, Luca Olivetti wrote: Al 20/02/11 12:42, En/na Bo Berglund ha escrit: I wonder if GetTickCount will get me a better value to milliseconds than Now()? Not under linux: function GetTickCount: DWord; begin Result := DWord(Trunc(Now * 24 * 60 *

Re: [Lazarus] startup problem

2011-02-23 Thread Xiangrong Fang
Hi Mattias, The key problem is that I did NOT compile it myself, I downloaded the amd64 deb from the daily snapshot page. There was no fpc or lazarus on the ubuntu (2 machines) before I install snapshot 20110222. How do I update individual files? Also, isn't it a bug that the snapshot included

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-02-23 Thread Marco van de Voort
On Thu, Feb 17, 2011 at 10:20:38AM +0100, Felipe Monteiro de Carvalho wrote: On Wed, Feb 16, 2011 at 10:11 PM, Marco van de Voort mar...@stack.nl wrote: How do you duplicate every usage of string in the entire Lazarus tree? I don't understand your question. I proposed to duplicate RTL string

[Lazarus] FW: *** ECN: Lazarus or Delphi 5 version of TwhForm2HTML

2011-02-23 Thread Peter Williams
Hi All, I have been working on a project from Delphi 3 from Ann Lynnworth which is Delphi form to html conversion tool. It was written for Ann's company and she has kindly offered it to the Lazarus community under this licence (originally commercial I believe):

Re: [Lazarus] FW: *** ECN: Lazarus or Delphi 5 version of TwhForm2HTML

2011-02-23 Thread Sven Barth
Am 23.02.2011 16:06, schrieb Peter Williams: Hi All, I have been working on a project from Delphi 3 from Ann Lynnworth which is Delphi form to html conversion tool. It was written for Ann's company and she has kindly offered it to the Lazarus community under this licence (originally commercial

Re: [Lazarus] Identifier not found, but code completion works....

2011-02-23 Thread Hans-Peter Diettrich
Florian Klämpfl schrieb: Am 22.02.2011 15:43, schrieb Hans-Peter Diettrich: Please stay with the truth: all but the very first (OO) branch have been tested thoroughly, and I couldn't find any breaks. Before anybody wonders what I couldn't find any breaks means: make all for the NoGlobals

Re: [Lazarus] Identifier not found, but code completion works....

2011-02-23 Thread Marco van de Voort
On Tue, Feb 22, 2011 at 03:26:57PM +0100, Hans-Peter Diettrich wrote: Feel free to do so, we are all waiting for at least five years for somebody to fix it :) You'll hardly find anybody, to fix these bugs at *your* (FPC team) conditions :-( Without the conditions, you only get

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Luca Olivetti
Al 23/02/11 13:17, En/na Petr Kristan ha escrit: On Sun, Feb 20, 2011 at 02:46:34PM +0100, Luca Olivetti wrote: Al 20/02/11 12:42, En/na Bo Berglund ha escrit: I wonder if GetTickCount will get me a better value to milliseconds than Now()? Not under linux: function GetTickCount: DWord;

[Lazarus] Android and QT ?

2011-02-23 Thread Razvan Adrian Bogdan
Hi, I have just found this link http://www.pro-linux.de/news/1/16733/necessitas-suite-qt-fuer-android-vorgestellt.html(German) speaking about this announcement http://groups.google.com/group/android-qt/browse_thread/thread/209edef7c5ceec8afor a unofficial community port of QT to Android. I'm not

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Bo Berglund
On Wed, 23 Feb 2011 09:50:26 +0100, Sven Barth pascaldra...@googlemail.com wrote: Am 22.02.2011 16:02, schrieb Bo Berglund: Have to look elsewhere. The only really usable solution might be to attach an external time source to your PC and use that time signal. I don't know of a suitable

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Bo Berglund
On Wed, 23 Feb 2011 10:20:19 +0100, Sven Barth pascaldra...@googlemail.com wrote: Am 23.02.2011 10:04, schrieb Graeme Geldenhuys: Op 2011-02-23 10:50, Sven Barth het geskryf: I don't know of a suitable hardware though (I haven't yet done anything related to such accurate timings). I have

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread John
On 24/02/2011 5:32 AM, Bo Berglund wrote: On Wed, 23 Feb 2011 10:20:19 +0100, Sven Barth pascaldra...@googlemail.com wrote: snip Yeah, but my efforts are not successful in using a USB connected GPS sensor and trying to get accuracy from the telegrams sent by it. I think much of the time

Re: [Lazarus] Portable way to get accurate timestamps?

2011-02-23 Thread Graeme Geldenhuys
Op 2011-02-23 18:56, Luca Olivetti het geskryf: BTW: in which unit are clock_gettime and related constants defined? libc (FPC wrapper to the libc library) ...more specifically... packages/libc/src/timeh.inc I wonder if we can't use Petr's GetTickCount() implementation as default for