|
Prev: Error Handling
Next: Vulcan.NET: next Clipper/VO?
From: Gerd Hoernemann on 6 May 2008 05:03 al.schmitt(a)gmx.de schrieb: > Good point, but I need a higher resolution. My aim is to measure the > time between two key events for positioning the appropriate record in > a bBrowser using seek. After a timeout of 1200 ms, the entered search- > string is reset to an empty string. The same behaviour can be seen in > the Windows Explorer when typing filenames in order to quickly find a > file. Alex, you could also concider to use the multimedia timer. It has the greatest resolution which is possible for the hardware platform. Look for timeSetEvent() etc. HTH Gerd
From: FdW on 6 May 2008 08:13 Gerd, Or QueryPerformanceCounter(...) and QueryPerformanceFrequency(...), both are defined in 'WinBase' of the 'Win32 API Library'. Get a copy of the CPU28 library (from the GrafX 3rd party ftp site) and you will be able to perform integer calculations on the results from these calls. Regards, Frans. METHOD ... LOCAL struPerformanceFrequency IS _WinLarge_Integer LOCAL struElapseTime IS _WinLarge_Integer LOCAL struStartTime IS _WinLarge_Integer LOCAL struStopTime IS _WinLarge_Integer LOCAL fElapsed AS FLOAT QueryPerformanceCounter(@struStartTime) ... ... // Do some work ... QueryPerformanceCounter(@struStopTime) QueryPerformanceFrequency(@struPerformanceFrequency) U6464Sub(@struElapseTime,@struStopTime,@struStartTime) fElapsed:=FLOAT(struElapseTime.LowPart)/FLOAT(struPerformanceFrequency.LowPart) _DebOut32(String2Psz("Time(Sec)=>"+Str3(fElapsed,10,6))) "Gerd Hoernemann" <hoernemann(a)arcor.de> wrote in message news:48201ec7$0$6775$9b4e6d93(a)newsspool2.arcor-online.net: > al.schmitt(a)gmx.de schrieb: > > > Good point, but I need a higher resolution. My aim is to measure the > > time between two key events for positioning the appropriate record in > > a bBrowser using seek. After a timeout of 1200 ms, the entered search- > > string is reset to an empty string. The same behaviour can be seen in > > the Windows Explorer when typing filenames in order to quickly find a > > file. > > > Alex, > > you could also concider to use the multimedia timer. It has the greatest > resolution which is possible for the hardware platform. Look for > timeSetEvent() etc. > > HTH > Gerd
From: Gerd Hoernemann on 6 May 2008 08:35 FdW schrieb: > Or QueryPerformanceCounter(...) and QueryPerformanceFrequency(...), both > are defined in 'WinBase' of the 'Win32 API Library'. Get a copy of the > CPU28 library (from the GrafX 3rd party ftp site) and you will be able > to perform integer calculations on the results from these calls. Frans, thank you, I will have a look at it. Regards, Gerd
From: DPLuigi on 6 May 2008 10:07 Hi France > U6464Sub Where i can found this function ? Best Regards, Luigi De Palma On 6 Mag, 14:13, "FdW" <fdewit_Remove_@_Remove_planet.nl> wrote: > Gerd, > > Or QueryPerformanceCounter(...) and QueryPerformanceFrequency(...), both > are defined in 'WinBase' of the 'Win32 API Library'. Get a copy of the > CPU28 library (from the GrafX 3rd party ftp site) and you will be able > to perform integer calculations on the results from these calls. > > Regards, > Frans. > > METHOD ... > LOCAL struPerformanceFrequency IS _WinLarge_Integer > LOCAL struElapseTime IS _WinLarge_Integer > LOCAL struStartTime IS _WinLarge_Integer > LOCAL struStopTime IS _WinLarge_Integer > LOCAL fElapsed AS FLOAT > > QueryPerformanceCounter(@struStartTime) > > ... > ... // Do some work > ... > > QueryPerformanceCounter(@struStopTime) > > QueryPerformanceFrequency(@struPerformanceFrequency) > > U6464Sub(@struElapseTime,@struStopTime,@struStartTime) > fElapsed:=FLOAT(struElapseTime.LowPart)/FLOAT(struPerformanceFrequency.LowPart) > > _DebOut32(String2Psz("Time(Sec)=>"+Str3(fElapsed,10,6))) > > "Gerd Hoernemann" <hoernem...(a)arcor.de> wrote in message > > news:48201ec7$0$6775$9b4e6d93(a)newsspool2.arcor-online.net: > > > > > al.schm...(a)gmx.de schrieb: > > > > Good point, but I need a higher resolution. My aim is to measure the > > > time between two key events for positioning the appropriate record in > > > a bBrowser using seek. After a timeout of 1200 ms, the entered search- > > > string is reset to an empty string. The same behaviour can be seen in > > > the Windows Explorer when typing filenames in order to quickly find a > > > file. > > > Alex, > > > you could also concider to use the multimedia timer. It has the greatest > > resolution which is possible for the hardware platform. Look for > > timeSetEvent() etc. > > > HTH > > Gerd- Nascondi testo tra virgolette - > > - Mostra testo tra virgolette -
From: Karl Faller on 6 May 2008 10:13 >Get a copy of the >> CPU28 library (from the GrafX 3rd party ftp site)
|
Pages: 1 Prev: Error Handling Next: Vulcan.NET: next Clipper/VO? |