Board index » delphi » FAST TIMER FOR REAL TIME APPLICATIONS
m...@worldnet.fr
![]() Delphi Developer |
Sun, 17 Jan 1999 03:00:00 GMT
|
m...@worldnet.fr
![]() Delphi Developer |
Sun, 17 Jan 1999 03:00:00 GMT
FAST TIMER FOR REAL TIME APPLICATIONSI am french and i work with DELPHI 2 or how can i do this. |
Brad Stowe
![]() Delphi Developer |
Mon, 18 Jan 1999 03:00:00 GMT
Re:FAST TIMER FOR REAL TIME APPLICATIONSQuotem...@worldnet.fr wrote: timeSetEvent, or some of the other time functions available in MMSYSTEM.DLL. You can find help for them in either MMSYSTEM.HLP or MM.HLP depending on the version of Delphi/Pascal you are using. MM.HLP in your case. --Brad Regards, |
Paul Baile
![]() Delphi Developer |
Tue, 19 Jan 1999 03:00:00 GMT
Re:FAST TIMER FOR REAL TIME APPLICATIONSQuotem...@worldnet.fr wrote: timer down to 1ms for realtime apps, but that is pushing DOS to the limit. I doubt if you'll get 100us that you are looking for in a WINDOWS timer. That has been what is keeping me in DOS programs for REALTIME apps so far is the fact that WINDOWS realtime stuff is too slow. The only way you'll get around it is to use DMA, which the soundblasters Hope this helps |
Lord of Darknes
![]() Delphi Developer |
Fri, 22 Jan 1999 03:00:00 GMT
Re:FAST TIMER FOR REAL TIME APPLICATIONSTry ----------------hope this helps unit D_timer; { Revised for Delphi 2. Should get 840nS resolution, but the graininess is quite coarse. Delphi 1 users - see BYTE magazine April 95 This version March 96 Quote} uses WinTypes,WinProcs; type { useful for monitoring average frame speed } procedure start_ticker; {$IFDEF VER80 } { Borland Delphi version 1 } implementation var { Quote} game } { --------------------------------------------------------------------------- Quote} begin average_frame_speed := 0; averages := avgs; end; function frame_speed_obj.update(newtime:double) : double; Quote} stuff } { --------------------------------------------------------------------------- Quote} begin get_ticks; last_ticks:=this_ticks; end; procedure stop_ticker; function elapsed_ticks : longint; function tick_seconds : double; { returns time elapsed without resetting ticker } {$IFDEF VER90 } { Borland Delphi version 2 } procedure get_ticks; initialization |
Michael Brink
![]() Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Re:FAST TIMER FOR REAL TIME APPLICATIONSIf you are running on a Pentium, you can use the undocumented (?) RDTSC 16-bit code to read counter: function GetCpuTimeStamp: Comp; HTH |
1. Help with a real time timer
3. Real-time rendering without timer?
4. fast text editing & real-time colorcoding
5. Real time canvas pixel refreshing : any fast way ?
6. Delphi good for Real-Time application?
7. How to count time of signals in real Time with PC-Timer ?