summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-12-27 22:18:14 +0000
committerdavidovski <david@davidovski.xyz>2023-12-27 22:18:14 +0000
commit0456749720eee65b2a97aee705bb7e3cf2bae337 (patch)
tree49f94b114a0b601f4f72d089f39284ad14bc2aae
parent17dbc958104165cc0ed8acfd55137065f4fdb816 (diff)
hide performance debug
-rwxr-xr-xtypr.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/typr.sh b/typr.sh
index 4517941..1a4c838 100755
--- a/typr.sh
+++ b/typr.sh
@@ -177,17 +177,17 @@ typr_main () {
correct_kp=0
export correct_kp total_kp
- fstart=$(date +%s%N)
+ #fstart=$(date +%s%N)
while true; do
typr_draw_text
# calculate performance
- fend=$(date +%s%N)
- msperframe=$(((fend-fstart)/1000000))
- printf "%6s" "$msperframe"
+ #fend=$(date +%s%N)
+ #msperframe=$(((fend-fstart)/1000000))
+ #printf "%6s" "$msperframe"
c="$(tty_readc)"
- fstart=$(date +%s%N)
+ #fstart=$(date +%s%N)
case "$c" in
''|'') break;;
'')