Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set(@tps_label_active,1)
- SetLabel("tps.label","Starting...")
- UnSafe()
- Do()
- #tick_1=%TICKS%
- Wait(10)
- #tick_2=%TICKS%
- &result="T1 = %#tick_1% / T2 = %#tick_2%\n"
- #tick_delta=#tick_2-#tick_1
- If(%#tick_delta%<0)
- Inc(#tick_delta,24000)
- EndIf
- If(%#tick_delta%>20000)
- &result="%&result%Heavy TPS Lag"
- Else
- &tps_array[]=Split("",%#tick_delta%)
- #tps_array_size=ArraySize(&tps_array[])
- If(%#tps_array_size%==1)
- &tps="0.%#tick_delta%"
- Else
- Pop(&tps_array[],&tps_array_last_digit)
- Push(&tps_array[],".%&tps_array_last_digit%")
- &tps=Join("",&tps_array[])
- EndIf
- &result="%&result%Current TPS = %&tps%"
- EndIf
- SetLabel("tps.label",%&result%)
- Loop
- EndUnSafe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement