You can shorten down your `updateProfilerStatsForS...
# gamedev
d
You can shorten down your
updateProfilerStatsForSystems
func too with `apply`:
Copy code
val perfStat = hash[systemAndProfiler.system]!!.apply {
                timeMin = counter.time.min * 1000f
                timeMax = counter.time.max * 1000f
                timeCurrent = counter.time.latest * 1000f
                timeAverage = counter.time.average * 1000f
            }