From f53f1256f184c0cddb565eebb7ecb2f8f1e079d3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 19:29:46 -0600 Subject: more rm old code --- timer.go | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 timer.go (limited to 'timer.go') diff --git a/timer.go b/timer.go deleted file mode 100644 index 067a85a..0000000 --- a/timer.go +++ /dev/null @@ -1,19 +0,0 @@ -package repostatus - -import ( - "time" -) - -// timeFunction takes a function as an argument and returns the execution time. -func timeFunction(f func()) time.Duration { - startTime := time.Now() // Record the start time - f() // Execute the function - return time.Since(startTime) // Calculate the elapsed time -} - -func (ls *RepoStatus) SetSpeedActual(s string) { - if !ls.Ready() { - return - } - ls.speedActual.SetValue(s) -} -- cgit v1.2.3