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 {
m.Lock()
v := actualFPS
m.Unlock()
return v
defer m.Unlock()
return actualFPS
}
func ActualTPS() float64 {
m.Lock()
v := actualTPS
m.Unlock()
return v
defer m.Unlock()
return actualTPS
}
func max(a, b int64) int64 {