Time in milliseconds on Windows Mobile 6.1 lazarus / 35-Windows CE ---------------------------------------------------------------------- CodeMonkey · 2010-06-02 06:59 I am writing a stopwatch application and I need to get the current time in milliseconds or at least 1/10th of a second. I am finding that various routines correctly return the millisecond component of the time using Lazarus on Windows XP, but return 0 for the millisecond when I compile and run the Lazarus app on my Windows Mobile 6.1 phone (HTC Touch HD Phone) I have tried various routines, but they all return 0 for the millisecond   DecodeTime(               // convert date to separate values             Now(),             vHour,             vMinute,             vSecond,             vMillisecond   // always return 0 on my Win Mobile phone             ); FormatDateTime('hh:nn:ss', aDateTime);  // get hour,min,sec FormatDateTime('z', aDateTime);   // get milliseconds, also returns 0 Is there a trick to getting this to work ? thanks for any advice that you can offer Environment =================== Lazarus    lazarus-0.9.28.2-fpc-2.2.4-win32.exe    Lazarus-0.9.28.2-fpc-2.2.4-cross-arm-wince-win32.exe HTC Touch HD - Windows Mobile 6.1 ---------------------------------------------------------------------- felipemdc · 2010-06-03 09:39 Try EpikTimer: http://wiki.lazarus.freepascal.org/EpikTimer Or check which Windows APIs it uses and use the Windows APIs directly. ---------------------------------------------------------------------- User137 · 2010-06-03 14:37 Would LCLIntf unit's GetTickCount() function work for you? I assumed you only need milliseconds in relative time, not hours and minutes of real clock. ---------------------------------------------------------------------- felipemdc · 2011-04-15 08:25 Quote from: johnson on April 15, 2011, 07:19:52 amNow mobile have features of windows and operate just like a window Strange message. Is this a bot? But I don't see any spam... ---------------------------------------------------------------------- marcov · 2011-04-15 09:19 Quote from: felipemdc on April 15, 2011, 10:25:14 amQuote from: johnson on April 15, 2011, 07:19:52 amNow mobile have features of windows and operate just like a window Strange message. Is this a bot? But I don't see any spam... A lot of bots try to increase their google rating. What they do is create many accounts and make some simple (but not offending) posts over a certain time. Then, a while later, when these ports are not visible on the frontpages they change the signature in their profile with various links. They then have a bunch of links to their sites from domain names with decent pageranks that nobody notices. Afaikt here are two problems with this approach though: 1) google has done damage control last summer and autumn, and many cases are already detected and don't increase ranking. Google thinks to have suitable forum detection in place for all major forum platforms before the summer. 2) Marc runs a script every week that turns up such accounts. Of course reason (2) is only for our little forum, but (1) has decreased the efficitivity from this particular scam, and soon it will be near air tight and a waste of time. Probably the malware authors are still selling kits to gullable would- be-spammers though, and we will probably be stuck with attempts for years to come, even if it is futile