summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-18 15:09:35 -0600
committerJeff Carr <[email protected]>2024-02-18 15:09:35 -0600
commitdc0040f0805e7a8ab3f47ea0e5ebffb03eda2b62 (patch)
tree3e6004de83011ad925b220ee899d82eaa5d11759 /watchdog.go
parent02542bafe8f570d04a946851a4c993f3f4de6e18 (diff)
guireleaser runs again
Diffstat (limited to 'watchdog.go')
-rw-r--r--watchdog.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/watchdog.go b/watchdog.go
index 9b136f4..1dbb2f4 100644
--- a/watchdog.go
+++ b/watchdog.go
@@ -47,7 +47,7 @@ func (r *RepoList) Watchdog(f func()) {
}
// timeFunction takes a function as an argument and returns the execution time.
-func timeFunction(f func()) time.Duration {
+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