mirror of
https://bitbucket.org/Mattrixwv/luaclasses.git
synced 2026-02-03 19:52:33 -05:00
Fixed typos
This commit is contained in:
@@ -56,9 +56,9 @@ function Stopwatch:stop()
|
|||||||
--Set the time first, for efficiency sake
|
--Set the time first, for efficiency sake
|
||||||
self.stopTime = os.clock();
|
self.stopTime = os.clock();
|
||||||
--Make sure the clock had been started
|
--Make sure the clock had been started
|
||||||
if(startTime == nil) then
|
if(self.startTime == nil) then
|
||||||
--If not unset the stop time
|
--If not unset the stop time
|
||||||
stopTime = nil;
|
self.stopTime = nil;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ function Stopwatch:getString()
|
|||||||
timeString = string.format("%.3f seconds", timeDifference);
|
timeString = string.format("%.3f seconds", timeDifference);
|
||||||
elseif(timeResolution == Stopwatch.timeResolution.minutes) then
|
elseif(timeResolution == Stopwatch.timeResolution.minutes) then
|
||||||
timeString = string.format("%.3f minutes", timeDifference);
|
timeString = string.format("%.3f minutes", timeDifference);
|
||||||
elseif(timeResoltuion == Stopwatch.timeResolution.hours) then
|
elseif(timeResolution == Stopwatch.timeResolution.hours) then
|
||||||
timeString = string.format("%.3f hours", timeDifference);
|
timeString = string.format("%.3f hours", timeDifference);
|
||||||
else
|
else
|
||||||
timeString = "ERROR! TimeResolution = " .. timeResolution;
|
timeString = "ERROR! TimeResolution = " .. timeResolution;
|
||||||
|
|||||||
Reference in New Issue
Block a user