use nanosleep to send updates every 200ms