Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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.

Rule #1: Be Respectful

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

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom