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.