From b4568e3e5197960dbb4f95735e7bf3f48377ae65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 20 Feb 2024 16:21:34 +0100 Subject: [PATCH] removed time print MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/client/main.py b/client/main.py index 02468f7..5717338 100644 --- a/client/main.py +++ b/client/main.py @@ -77,33 +77,20 @@ if __name__ == "__main__": mqttc.loop_start() while True: - start = time.time() for pixel in range(LEDS_PER_PIXEL): update_led_strip(tuple(eval(rgb_values_list[0])), pixel, strip) - end = time.time() - print("Pixel 1 took: "+str(end-start)) - start = time.time() + for pixel in range(LEDS_PER_PIXEL, LEDS_PER_PIXEL*2): update_led_strip(tuple(eval(rgb_values_list[1])), pixel, strip) - end = time.time() - print("Pixel 2 took: "+str(end-start)) - start = time.time() + for pixel in range(LEDS_PER_PIXEL*2, LEDS_PER_PIXEL*3): update_led_strip(tuple(eval(rgb_values_list[2])), pixel, strip) - end = time.time() - print("Pixel 3 took: "+str(end-start)) - start = time.time() + for pixel in range(LEDS_PER_PIXEL*3, LEDS_PER_PIXEL*4): update_led_strip(tuple(eval(rgb_values_list[3])), pixel, strip) - end = time.time() - print("Pixel 4 took: "+str(end-start)) - start = time.time() + for pixel in range(LEDS_PER_PIXEL*4, LEDS_PER_PIXEL*5): update_led_strip(tuple(eval(rgb_values_list[4])), pixel, strip) - end = time.time() - print("Pixel 5 took: "+str(end-start)) - start = time.time() + for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6): - update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) - end = time.time() - print("Pixel 6 took: "+str(end-start)) \ No newline at end of file + update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) \ No newline at end of file