This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
Corn-Utility/toolbox/system.go
toast c4ddf77a7b
All checks were successful
Build and push container image / build (push) Successful in 41s
Upload the rest of files
2023-10-20 09:08:38 +11:00

11 lines
166 B
Go

package toolbox
import "time"
var timerStart = time.Now()
func GetUptime() string {
uptime := time.Since(timerStart)
return uptime.Round(time.Second).String()
}