| View previous topic :: View next topic |
| Author |
Message |
Charlie K Guest
|
Posted: Fri Dec 23, 2005 3:03 pm Post subject: Ttimer resolution |
|
|
Hi all,
I am trying to get a callback every 20 milliseconds out of a Ttimer. On
the O'Scope, I only see about a 55msec minimum.
It is an old machine, P5-133, win 95, BCB 5.0.
Is this a hardware fundamental limit, or would changing the OS to Win 98
help?
Any help would be appreciated,
Charlie Kupelian
|
|
| Back to top |
|
 |
Boba Guest
|
Posted: Fri Dec 23, 2005 5:30 pm Post subject: Re: Ttimer resolution |
|
|
"Charlie K" <kupelian_charlie (AT) nsroc (DOT) net> wrote
| Quote: | ...
I am trying to get a callback every 20 milliseconds out of a Ttimer.
On
the O'Scope, I only see about a 55msec minimum.
...
|
This is pure software limits. On a 133M machine u should get 1 ms
easily.
I recall TTimer (if it's what you mean) is fed on WM_TIMER message,
which
in turn is sent out whenever the OS feels like doing so but no more
often
than 55 times per second. Don't rely on the Borland's TTimer for what
you
are trying to achieve. I'd try mm timer instead.
Boba
|
|
| Back to top |
|
 |
Charlie K Guest
|
Posted: Fri Dec 23, 2005 5:36 pm Post subject: Re: Ttimer resolution |
|
|
Boba wrote:
| Quote: | "Charlie K" <kupelian_charlie (AT) nsroc (DOT) net> wrote in message
news:43ac116f$1 (AT) newsgroups (DOT) borland.com...
...
I am trying to get a callback every 20 milliseconds out of a Ttimer.
On
the O'Scope, I only see about a 55msec minimum.
...
This is pure software limits. On a 133M machine u should get 1 ms
easily.
I recall TTimer (if it's what you mean) is fed on WM_TIMER message,
which
in turn is sent out whenever the OS feels like doing so but no more
often
than 55 times per second. Don't rely on the Borland's TTimer for what
you
are trying to achieve. I'd try mm timer instead.
Boba
Thanks for the reply. |
I will check out the mm timer.
Charlie K.
|
|
| Back to top |
|
 |
AlexB Guest
|
Posted: Sat Dec 24, 2005 7:02 am Post subject: Re: Ttimer resolution |
|
|
Charlie K wrote:
| Quote: | I will check out the mm timer.
|
You can try my very old and very basic TMMTimer on www.delphipages.com.
Be careful: procedure OnTimer works in separate thread.
Alex.
|
|
| Back to top |
|
 |
Charlie K Guest
|
Posted: Tue Dec 27, 2005 7:18 pm Post subject: Re: Ttimer resolution |
|
|
AlexB wrote:
| Quote: | Charlie K wrote:
I will check out the mm timer.
You can try my very old and very basic TMMTimer on www.delphipages.com.
Be careful: procedure OnTimer works in separate thread.
Alex.
Hi Alex, |
Thanks - I found this other package before I saw yours.
After your last post, I did some searches and found a package called
AnimTimer by Lucian Wischik. It behaves very much like TTimer. It works
nicely, but if I set it disabled twice, I get crashes. I ended up with a
flag to tell me if it was running or not before I enabled/ disabled it.
I get very repeatable 20 ms function calls.
Once again, thanks for the help.
Thanks for posting free code.
Happy Holidays,
Charlie Kupelian
|
|
| Back to top |
|
 |
Nate Lockwood Guest
|
Posted: Wed Dec 28, 2005 6:16 pm Post subject: Re: Ttimer resolution |
|
|
AlexB wrote:
| Quote: | You can try my very old and very basic TMMTimer on www.delphipages.com.
Be careful: procedure OnTimer works in separate thread.
|
Should this work with Builder 6?
Nate
|
|
| Back to top |
|
 |
AlexB Guest
|
Posted: Thu Dec 29, 2005 5:50 am Post subject: Re: Ttimer resolution |
|
|
Nate Lockwood wrote:
| Quote: | You can try my very old and very basic TMMTimer on www.delphipages.com.
Should this work with Builder 6?
Try it. Why no?  |
Alex.
|
|
| Back to top |
|
 |
|