client
var
ping = 0
ping_id = 0
verb
ping(time as num)
set instant = 1
set hidden = 1
set waitfor = 0
var/value=100
if(world.tick_usage>100)
value=world.tick_usage
ping = (world.time+world.tick_lag*world.tick_usage/value)-time
var/lping = (ping_id+1)%10000000
ping_id = lping
sleep(1)
if(ping_id==lping)
winset(src,null,"command=ping+[world.time+world.tick_lag*world.tick_usage/value]")
client/New()
..()
ping(1)
When you login you receive the error "Unrecognized or inaccessible verb: ping" but when you try to run it via Command, it works as expected.