use os.clock rather than unix time for control

This commit is contained in:
Mikayla Fischler 2024-04-09 22:24:03 -04:00
parent 65d43d55c7
commit 612a06ba98

View File

@ -337,7 +337,7 @@ function facility.new(num_reactors, cooling_conf)
local avg_inflow = self.avg_inflow.compute()
local avg_outflow = self.avg_outflow.compute()
local now = util.time_s()
local now = os.clock()
local state_changed = self.mode ~= self.last_mode
local next_mode = self.mode