internal/clock: refactoring

This commit is contained in:
Hajime Hoshi 2022-07-12 12:42:16 +09:00
parent c5e952d196
commit d4e1787154

View File

@ -54,16 +54,14 @@ func init() {
func ActualFPS() float64 { func ActualFPS() float64 {
m.Lock() m.Lock()
v := actualFPS defer m.Unlock()
m.Unlock() return actualFPS
return v
} }
func ActualTPS() float64 { func ActualTPS() float64 {
m.Lock() m.Lock()
v := actualTPS defer m.Unlock()
m.Unlock() return actualTPS
return v
} }
func max(a, b int64) int64 { func max(a, b int64) int64 {