11 lines
166 B
Go
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()
|
||
|
}
|