<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/14989" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2009-01-10T11:56:03-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/14989</id>

		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2009-01-10T11:56:03-04:00</updated>

		<published>2009-01-10T11:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86839#p86839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86839#p86839"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86839#p86839"><![CDATA[
ye i try the before script with 300 seconds and is ok same second.. i am going to user utimer 300 for timer 5 to see if it works better.<br><br>thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Sat Jan 10, 2009 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-01-10T11:52:50-04:00</updated>

		<published>2009-01-10T11:52:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86838#p86838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86838#p86838"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86838#p86838"><![CDATA[
As stated earlier, use the proper timer for the proper accuracy. timer gives you an accuracy to the minute, utimer gives you an accuracy to the second.<br><br>Also, you cannot script around lag, as that is not within the context of eggdrop scripting but network dependant.<br><br>The way I see it, there is nothing to fix (apart from using utimers when you need precision down to the second). Upgrading/downgrading your eggdrop will have no impact whatsoever on this issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Jan 10, 2009 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2009-01-10T11:39:57-04:00</updated>

		<published>2009-01-10T11:39:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86836#p86836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86836#p86836"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86836#p86836"><![CDATA[
so how i can fix that to have correct time ? is it possible to fix that problem if i use the latest version of eggdrop ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Sat Jan 10, 2009 11:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-01-10T11:36:43-04:00</updated>

		<published>2009-01-10T11:36:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86835#p86835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86835#p86835"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86835#p86835"><![CDATA[
The results shown above using my script would indicate that timer events are working as expected on your bot. ie. triggering to the nearest minute<br><br>What I know as lag is generally a time delay in the IRC network connection. This would cause a delay to occur before the channel output is seen, but I would not expect it to affect timer/utimer triggering.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sat Jan 10, 2009 11:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2009-01-10T11:26:23-04:00</updated>

		<published>2009-01-10T11:26:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86834#p86834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86834#p86834"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86834#p86834"><![CDATA[
thnx for that test script my results..<br><br>17:10:16] &lt;@Ultralord&gt; !time 1 minute<br>[17:10:17] &lt;@botnick&gt; Time Started (1 minute test) Sat Jan 10 17:09:25 2009<br>[17:10:52] &lt;@botnick&gt; Time Ended (1 minute test) Sat Jan 10 17:10:00 2009<br>[17:11:04] &lt;@Ultralord&gt; !time 1 minute<br>[17:11:05] &lt;@botnick&gt; Time Started (1 minute test) Sat Jan 10 17:10:13 2009<br>[17:11:51] &lt;@botnick&gt; Time Ended (1 minute test) Sat Jan 10 17:11:00 2009<br>[17:12:04] &lt;@Ultralord&gt; !time 1 minute<br>[17:12:06] &lt;@botnick&gt; Time Started (1 minute test) Sat Jan 10 17:11:14 2009<br>[17:12:51] &lt;@botnick&gt; Time Ended (1 minute test) Sat Jan 10 17:12:00 2009<br>[17:13:23] &lt;@botnick&gt; Time Started (5 minute test) Sat Jan 10 17:12:31 2009<br>[17:17:51] &lt;@botnick&gt; Time Ended (5 minute test) Sat Jan 10 17:17:00 2009<br>[17:19:19] &lt;@botnick&gt; Time Started (5 minute test) Sat Jan 10 17:18:14 2009<br>[17:23:51] &lt;@botnick&gt; Time Ended (5 minute test) Sat Jan 10 17:23:00 2009<br><br>some tests.. sometimes like 1st bind i have problem.. is it possible the bot have count problem if the bot have lag? but i dont see any problem with any of my scripts and the scripts doesnt lag because i have some spam message and is ok..<br><br>thnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Sat Jan 10, 2009 11:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-01-09T21:26:45-04:00</updated>

		<published>2009-01-09T21:26:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86817#p86817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86817#p86817"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86817#p86817"><![CDATA[
I made a small script as follows to test the accuracy of timers/utimers on my 1.6.19 bot :-<br><div class="codebox"><p>Code: </p><pre><code># time.tcl# syntax !time &lt;integer&gt; &lt;minute||second&gt;bind PUB - !time pTimeTriggerproc pTimeTrigger {nick uhost hand chan text} {    set txt [split [string trim $text]]    if {[llength $txt] == 2} {        set number [lindex $txt 0]        set type [lindex $txt 1]        if {![string equal $number 0]} {            if {[string is integer $number]} {                switch -- $type {                    minute {                        pTimeStarted $number $type $chan                        timer $number [list pTimeEnded $number $type $chan]                    }                    second {                        pTimeStarted $number $type $chan                        utimer $number [list pTimeEnded $number $type $chan]                    }                }            }        }    }    return 0}proc pTimeStarted {number type chan} {    putserv "PRIVMSG $chan :Time Started ($number $type test) [ctime [unixtime]]"    return 0}proc pTimeEnded {number type chan} {    putserv "PRIVMSG $chan :Time Ended ($number $type test) [ctime [unixtime]]"    return 0}</code></pre></div>Output is as follows :-<br><br>&lt;@arfer&gt; !time 1 minute<br>&lt;@Baal&gt; Time Started (1 minute test) Sat Jan 10 01:04:16 2009<br>&lt;@Baal&gt; Time Ended (1 minute test) Sat Jan 10 01:05:00 2009<br>&lt;@arfer&gt; !time 60 second<br>&lt;@Baal&gt; Time Started (60 second test) Sat Jan 10 01:05:55 2009<br>&lt;@Baal&gt; Time Ended (60 second test) Sat Jan 10 01:06:55 2009<br>&lt;@arfer&gt; !time 5 minute<br>&lt;@Baal&gt; Time Started (5 minute test) Sat Jan 10 01:07:10 2009<br>&lt;@Baal&gt; Time Ended (5 minute test) Sat Jan 10 01:12:00 2009<br>&lt;@arfer&gt; !time 300 second<br>&lt;@Baal&gt; Time Started (300 second test) Sat Jan 10 01:12:10 2009<br>&lt;@Baal&gt; Time Ended (300 second test) Sat Jan 10 01:17:09 2009<br><br>The results confirm above posts suggesting that minutely timers are only accurate to the nearest minute but secondly timers (utimers) are pretty much correct give or take a second.<br><br>However, I cannot see why you have a 5 minute timer triggering after approximately 3 minutes. This does not seem possible.<br><br>Feel free to use the script to run tests, that is if eggdrop 1.6.9 allows the included commands. Frankly, I think it is time you updated your bot version and accepted that your current scripts will no longer function.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Fri Jan 09, 2009 9:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2009-01-09T18:58:03-04:00</updated>

		<published>2009-01-09T18:58:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86813#p86813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86813#p86813"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86813#p86813"><![CDATA[
i have again that problem when i use eggdrop 1.6.9 version.. maybe the old that version have that problem? i want to run somethin on 5 minites and when i user timer 5 sometimes runs on ~3 minites etc.. and if i use utimer 300 (300 seconds) i have again the problem if the seconds is high.. the problem will be fixed if i use new version of eggdrop?<br><br><br>**i Use old version for something else because with new doesnt run <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> if you know about timer tell me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Fri Jan 09, 2009 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-15T04:56:51-04:00</updated>

		<published>2007-11-15T04:56:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78385#p78385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78385#p78385"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78385#p78385"><![CDATA[
That check would be pretty useless, as unixtime relies on the same timesource as HOOK_SECONDLY and timer-tracking. As such, the apparent time passed would always seem to be within one second of the desired time (or possibly longer, but never shorter).<br><br>The pretty much only reason why an utimer would start more than a second early, is as stated, that someone is playing around with the system-clock.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Nov 15, 2007 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-15T00:12:07-04:00</updated>

		<published>2007-11-15T00:12:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78379#p78379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78379#p78379"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78379#p78379"><![CDATA[
You could always set a var with [unixtime] at the beginning when the utimer is set, then within the proc set a different var with [unixtime] again and then subtract var2 from var1 and "if" it's 60 seconds, execute the rest of the proc, if not, calculate how many seconds remain and set a new utimer to run the proc again (which will calculate the time diff each time, etc.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Nov 15, 2007 12:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-14T19:42:07-04:00</updated>

		<published>2007-11-14T19:42:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78372#p78372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78372#p78372"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78372#p78372"><![CDATA[
utimers have an inaccuracy of less than a second, compared to timers which have an inaccuracy of less than a minute. If an utimer triggers much more early than this, it would usually indicate that the local clock on the system was advanced while the timer was "waiting".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Nov 14, 2007 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2007-11-14T18:58:47-04:00</updated>

		<published>2007-11-14T18:58:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78371#p78371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78371#p78371"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78371#p78371"><![CDATA[
i use utimer.. but sometimes runs proc early.. ;/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Wed Nov 14, 2007 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-11-14T18:50:54-04:00</updated>

		<published>2007-11-14T18:50:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78369#p78369</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78369#p78369"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78369#p78369"><![CDATA[
Check to run timers are triggered by the "HOOK_MINUTELY" hook, which will occur whenever the minute-value has changed (usually at 00 seconds), and thus have an inaccuracy of less than a minute. If you need exactly 60 seconds, use utimer instead, as these timers are checked each second.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Nov 14, 2007 6:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2007-11-14T18:35:21-04:00</updated>

		<published>2007-11-14T18:35:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78368#p78368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78368#p78368"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78368#p78368"><![CDATA[
i see the proc's results.. and some messages<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Wed Nov 14, 2007 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-11-14T18:13:43-04:00</updated>

		<published>2007-11-14T18:13:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78366#p78366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78366#p78366"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78366#p78366"><![CDATA[
How do you know that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Nov 14, 2007 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ultralord]]></name></author>
		<updated>2007-11-14T13:08:09-04:00</updated>

		<published>2007-11-14T13:08:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78363#p78363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78363#p78363"/>
		<title type="html"><![CDATA[about timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78363#p78363"><![CDATA[
hello<br><br>when i put:<br><br>timer 1 procname<br><br>sometimes doesnt run the proc in 1 minite but 50 seconds <br><br>or utimer 100 procname<br><br>sometimes runs on 50 seconds can i fix that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8360">ultralord</a> — Wed Nov 14, 2007 1:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
