Code: Select all
rightNow = ElapsedMilliseconds()
If (rightNow - lastElapsed) > 999; update the service status once per second
lastElapsed = rightNow
Service_UpdateStatus()
EndIf

Code: Select all
rightNow = ElapsedMilliseconds()
If (rightNow - lastElapsed) > 999; update the service status once per second
lastElapsed = rightNow
Service_UpdateStatus()
EndIf
