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

11 lines
166 B
Go
Raw Normal View History

2023-10-19 18:08:38 -04:00
package toolbox
import "time"
var timerStart = time.Now()
func GetUptime() string {
uptime := time.Since(timerStart)
return uptime.Round(time.Second).String()
}