[Question] Timer usage |
Author: |
Message: |
tryxter
Junior Member
A. Maia Ferreira @ PTnet
Posts: 51 Reputation: 1
35 / / –
Joined: Jan 2007
|
O.P. [Question] Timer usage
What do you think of a timer being executed every 1 minutes?
Will use too much memory or slow down the system?
I really don't know how much memory it will require and if MsgPlus Timer is a great memory consumer...
Thanks a lot one more time!
|
|
01-08-2007 08:56 PM |
|
|
Jimbo
Veteran Member
Posts: 1650 Reputation: 18
32 / /
Joined: Jul 2006
|
RE: [Question] Timer usage
quote: Originally posted by tryxter
What do you think of a timer being executed every 1 minutes?
Will use too much memory or slow down the system?
I really don't know how much memory it will require and if MsgPlus Timer is a great memory consumer...
Thanks a lot one more time!
Every one minute would take a lot of mem usage.
I recomend once every 4 or 5 minutes
|
|
01-08-2007 08:57 PM |
|
|
tryxter
Junior Member
A. Maia Ferreira @ PTnet
Posts: 51 Reputation: 1
35 / / –
Joined: Jan 2007
|
O.P. RE: [Question] Timer usage
Ok
Thanks a lot
|
|
01-08-2007 08:59 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Question] Timer usage
I have a specific function of Screenshot Sender 4 being 100 miliseconds. Its not really that much of an issue.
|
|
01-08-2007 09:00 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: [Question] Timer usage
tryxter, what do you want to do with the timer?
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
01-08-2007 09:27 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
Joined: Jan 2006
|
RE: RE: [Question] Timer usage
Timers don't take up a lot of memory at all.
|
|
01-08-2007 09:59 PM |
|
|
tryxter
Junior Member
A. Maia Ferreira @ PTnet
Posts: 51 Reputation: 1
35 / / –
Joined: Jan 2007
|
O.P. RE: [Question] Timer usage
quote: Originally posted by CookieRevised
tryxter, what do you want to do with the timer?
The objective is to search some text inside an ini file, and output that text.
Btw, I tested the memory consume using 5 secs timers, and I didn't notice any change at all, but I don't know if that change was visible...
(Ok, I found the edit option )
This post was edited on 01-08-2007 at 11:25 PM by tryxter.
|
|
01-08-2007 11:13 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: RE: [Question] Timer usage
quote: Originally posted by tryxter
quote: Originally posted by CookieRevised
tryxter, what do you want to do with the timer?
The objective is to search some text inside an ini file, and output that text.
Ok... but what have timers to do with this?
quote: Originally posted by tryxter
(Ok, I found the edit option )
cool
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
01-08-2007 11:40 PM |
|
|
tryxter
Junior Member
A. Maia Ferreira @ PTnet
Posts: 51 Reputation: 1
35 / / –
Joined: Jan 2007
|
O.P. RE: [Question] Timer usage
quote: Originally posted by CookieRevised
Ok... but what have timers to do with this?
Oh, well, the text read from the file has dates and times. When the timer is triggered it will read the ini file and will look for a time (that should correspond to the current time), and if this action returns 'true', it will do something (like display a toast or something, not decided yet).
quote: Originally posted by CookieRevised
cool
lol
|
|
01-08-2007 11:51 PM |
|
|
CookieRevised
Elite Member
Posts: 15517 Reputation: 173
– / /
Joined: Jul 2003
Status: Away
|
RE: RE: [Question] Timer usage
quote: Originally posted by tryxter
quote: Originally posted by CookieRevised
Ok... but what have timers to do with this?
Oh, well, the text read from the file has dates and times. When the timer is triggered it will read the ini file and will look for a time (that should correspond to the current time), and if this action returns 'true', it will do something (like display a toast or something, not decided yet).
Why not make your schedular the other way around so you avoid intensive file read operations all the time:
Read the file only when you script starts and store everything in memory. Make a timer which fires every time interval (smallest amount defined in your alarms in the ini, I assume it would be 1000ms) and compare the current time with the time in memory, if it is the same or higher, fire the event.
This post was edited on 01-08-2007 at 11:58 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|
|
01-08-2007 11:57 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|