def run(self):
      while True:
        # check FPS + listen for new connections
        new_tick = timeit.default_timer()
        elapsed_time = new_tick - self.tick
        current_samples_in =  nb_samples_in
        current_samples_out = nb_samples_out
        print "--- at t: ", (new_tick - self.start_tick), " ---"
        print "elapsed_time: ", elapsed_time
        print "nb_samples_in: ", current_samples_in - self.nb_samples_in
        print "nb_samples_out: ", current_samples_out - self.nb_samples_out
        self.tick = new_tick
        self.nb_samples_in = nb_samples_in
        self.nb_samples_out = nb_samples_out
        # time to watch for connection
        # FIXME: not so great with threads
        server.check_connections()
        time.sleep(1)
dataset/ETHPy150Open OpenBCI/OpenBCI_Python/scripts/stream_data.py/Monitor.run/original