From b0aac2a0d3bacbc1bfe6ded849c9a09e68386967 Mon Sep 17 00:00:00 2001 From: Gallahad072 Date: Fri, 2 Dec 2022 12:42:39 +0000 Subject: [PATCH] starts timer only when you start typing --- tutorial.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tutorial.py b/tutorial.py index dd5a8a9..bc66c31 100644 --- a/tutorial.py +++ b/tutorial.py @@ -52,6 +52,9 @@ def wpm_test(stdscr): except: continue + if current_text == []: + start_time = time.time() + if ord(key) == 27: break