mIRC Home    About    Download    Register    News    Help

Print Thread
#114894 19/03/05 11:39 AM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
what does pausing a timer?
doing timertest -p doesn't make it 'stand still', it keeps counting...

tested it with:
alias pausetest {
timerpausetest 1 15 echo -a afgelopen
timercheck 1 1 test
timerhalt 1 15 timercheck off
timerpause 1 5 timerpausetest -p
timerresume 1 10 timerpausetest -r
}
alias test {
echo -a pausetest: $timer(pausetest).secs | .timercheck 1 1 test
}

#114895 19/03/05 11:55 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
No it doesn't:

//timertest 0 1 echo -a $!time
(Wait a while)
/timertest -p
/timertest -r
(Wait a while)
/timertest off

Quote:
* Timer test activated
-
11:54:29
11:54:30
11:54:31
11:54:32
11:54:33
11:54:34
11:54:35
-
* Timer test paused
-
* Timer test resumed
-
11:54:38
11:54:39
11:54:40
-
* Timer test halted


New username: hixxy
#114896 19/03/05 05:48 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Unfortunately, it appears that all the -p pause command for the timers /timer does is pause the final outcome until the timer is resumed...This topic has been brought up several times, in different forums...to view the others, do a search on
Code:
/timer -p 
or
Code:
timer pause 

#114897 20/03/05 12:03 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
LethPhaos >> doing timertest -p doesn't make it 'stand still', it keeps counting...
tidy trax >> No it doesn't:


It does you know. (only noticed this after reading this thread)

//timertest 1 10 echo -a The Time is now $!time | timerwatch 1 1 echo -a Test has $!timer(test).secs secs till it runs - current time is $!time
* Timer test activated
* Timer watch activated
Test has 9 secs till it runs - current time is 11:51:44
Test has 8 secs till it runs - current time is 11:51:45
Test has 7 secs till it runs - current time is 11:51:46
Test has 6 secs till it runs - current time is 11:51:47
Test has 5 secs till it runs - current time is 11:51:48
Test has 4 secs till it runs - current time is 11:51:49
Test has 3 secs till it runs - current time is 11:51:50
Test has 2 secs till it runs - current time is 11:51:51
Test has 1 secs till it runs - current time is 11:51:52
The Time is now 11:51:53
Test has 10 secs till it runs - current time is 11:51:53
Test has 9 secs till it runs - current time is 11:51:54
Test has 8 secs till it runs - current time is 11:51:55
Test has 7 secs till it runs - current time is 11:51:56

//echo -a Pausing at $time | timertest -p
Pausing at 11:51:56
* Timer test paused
Test has 6 secs till it runs - current time is 11:51:57
Test has 5 secs till it runs - current time is 11:51:58
Test has 4 secs till it runs - current time is 11:51:59
Test has 3 secs till it runs - current time is 11:52:00
Test has 2 secs till it runs - current time is 11:52:01
Test has 1 secs till it runs - current time is 11:52:02
Test has 0 secs till it runs - current time is 11:52:03
Test has 0 secs till it runs - current time is 11:52:04
Test has 0 secs till it runs - current time is 11:52:05

Looks like a -p pauses the time at execution time not at the time you issue the -p, if that had been -r resumed it would have triggered timertest the next second, his also results in If u pause the resume within a timing cycle its like you never paused at all. (pause at 8 seconds left then resume 3 seconds later and 5 seconds later it goes off)


I would have assumed if someone "paused" a timer 2 seconds into a 10 second delay, that when you resumed it you would have 8 seconds left to wait
What appears to happen is the timer keeps ticking down and pauses at the event time, whcih isnt exactly a pause as you would expect.

#114898 20/03/05 12:06 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I misread his post ;o)


New username: hixxy

Link Copied to Clipboard