Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

dac script question

Status
Not open for further replies.
Joined
Oct 18, 2005
Posts
618
Reaction score
7
hi there,

i'm in the process of writing my own DAC scipt which is working all OK but i have one quibble which maybe someone here would be able to shed some light on...

we all know the 500/min and 216000/day limits, but i'm just wondering how you stick to them? i mean, how do you tell your script to run for example, 500 times a minute?

is it just a case of approximating an average response time for each reply and using that as a ballpoint figure or is there a "realtime" way of doing it that people employ?

i understand people keep their secrets under their belts around these parts but any suggestions would be appreciated :D

thanks.

Jonno.
 
why do you want to ask this?
some things you need to figure yourself.
try and do how it's better suits you..
 
I suppose there's two ways you could do it.

Firstly, you could assume the DAC always takes the same amount of time to respond. Let's say it's 50ms. If you're wanting to run for 24 hours then you need to query and get a response every 400ms. So the easy way is to wait approx 350ms after every query using some form of pause/wait function.

Secondly, you could do this:

- Start time = A
- Query DAC
- Get Response
- End time = B
- C = B - A
- If C > 400ms then start again (because it took longer than 400ms so no need to wait)
- Else wait for (400 - C)ms and then start again


Or you could do something completely different!
 
yeah that concept sounds a better way of going about it...

i'll have a play around and see what i can cook up :D

thanks :)
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

No members online now.

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom