summaryrefslogtreecommitdiff
path: root/timer.go
diff options
context:
space:
mode:
Diffstat (limited to 'timer.go')
-rw-r--r--timer.go19
1 files changed, 0 insertions, 19 deletions
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)
-}