Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tintin:gmcp_setup [2023/04/19 23:56] – ipeix | tintin:gmcp_setup [2023/04/20 08:15] (current) – Added latency example script ipeix | ||
---|---|---|---|
Line 98: | Line 98: | ||
There are a lot more and as always you can enable even more by tweaking the package names in '' | There are a lot more and as always you can enable even more by tweaking the package names in '' | ||
+ | |||
+ | ===== Examples ===== | ||
+ | === Latency checker === | ||
+ | A rough Round Trip Time measurement for network latency in milliseconds based on Core.Ping GMCP command | ||
+ | < | ||
+ | #ALIAS {latency} { | ||
+ | #FORMAT {LATENCY_TIME_SENT} {%U}; | ||
+ | gmcp Core.Ping; | ||
+ | } | ||
+ | |||
+ | #EVENT {IAC SB GMCP Core.Ping IAC SE} { | ||
+ | #FORMAT {LATENCY_TIME_EVENT} {%U}; | ||
+ | #MATH {LATENCY_TIME_TRIP} {($LATENCY_TIME_EVENT-$LATENCY_TIME_SENT)/ | ||
+ | #SHOWME {Latency: ${LATENCY_TIME_TRIP}ms} | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | | Usage | Output | | ||
+ | | '' | ||
Happy Scripting! | Happy Scripting! | ||