--[[ Copyright: Ren Tatsumoto and contributors License: GNU GPL, version 3 or later; http://www.gnu.org/licenses/gpl.html Timings class ]] local Timings = { ['start'] = -1, ['end'] = -1, } function Timings:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function Timings:reset() self['start'] = -1 self['end'] = -1 end function Timings:validate() return self['start'] >= 0 and self['start'] < self['end'] end return Timings