Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help about Time or Clock

Status
Not open for further replies.

DrunKeN

Technical User
Apr 8, 2004
4
MC
Hello, i need to know if is there anyway to get Unixtime or Uptime or anything else in MilliSeconds or MicroSeconds ...

I need to make a pinger in Milliseconds, and i only know Unixtime who count in seconds .. i can't use it.

Anyone know any other time commands who can be used to make a pinger ?

i mean if you wanna make a Delay in seconds, you have to set [unixtime] in a variable, and then you just avec to do an easy calc [expr [unixtime] - $variable] and it will give you the delay in seconds.. i wanna do the same but in milliseconds.

Thanks for any help guys !

Cya, DrunKeN
 
Thanks a lot, its exactly what i needed.. missed it.

But now i already got another problem, im not able to get a Ping Reply from user when i ping them with an EggDrop, i know its not an EggDrop forum, but TCL is a part of them anyway.


bind pub - !ping pub:ping
bind ctcr - ping ctcr:pingreply

proc pub:ping { nick uhost handle channel arg } {
putserv "PRIVMSG $nick \001PING [clock clicks]\001"
}
proc ctcr:pingreply {nick uhost hand dest key arg} {
putserv "NOTICE $nick :ping reply"
}

and im not receiving any notices, and not getting any errors, somebody have any idea why itsn't working correctly ?
 
Can't help you for that.
Would be better to open a new thread to get more help.

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top