modify server cycle sleep time from second to millisecond