BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ttimer resolution

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Charlie K
Guest





PostPosted: Fri Dec 23, 2005 3:03 pm    Post subject: Ttimer resolution Reply with quote



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





PostPosted: Fri Dec 23, 2005 5:30 pm    Post subject: Re: Ttimer resolution Reply with quote



"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





PostPosted: Fri Dec 23, 2005 5:36 pm    Post subject: Re: Ttimer resolution Reply with quote



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





PostPosted: Sat Dec 24, 2005 7:02 am    Post subject: Re: Ttimer resolution Reply with quote

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





PostPosted: Tue Dec 27, 2005 7:18 pm    Post subject: Re: Ttimer resolution Reply with quote

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





PostPosted: Wed Dec 28, 2005 6:16 pm    Post subject: Re: Ttimer resolution Reply with quote

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





PostPosted: Thu Dec 29, 2005 5:50 am    Post subject: Re: Ttimer resolution Reply with quote

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? Smile

Alex.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.