diff options
| author | Jeff Carr <[email protected]> | 2025-01-07 19:29:46 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-07 19:29:46 -0600 |
| commit | f53f1256f184c0cddb565eebb7ecb2f8f1e079d3 (patch) | |
| tree | 9e3320add93eb2ed3d8ff008d261be0e9d697ae8 /timer.go | |
| parent | 4efbead37c944b89a63b0c8d89325541d0392c3f (diff) | |
more rm old code
Diffstat (limited to 'timer.go')
| -rw-r--r-- | timer.go | 19 |
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) -} |
