summaryrefslogtreecommitdiff
path: root/watchdog.go
diff options
context:
space:
mode:
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