mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/clock: refactoring
This commit is contained in:
parent
c5e952d196
commit
d4e1787154
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user