I’m running really basic code in 484, but compared to 268, I’m getting wildly different return values from system.getTimer(). I’ve stripped down the code to its bare essentials. Am I missing something or is this a bug?
Here’s the code:
local function onSystemEvent(event)
if(event.type == “applicationStart”) then
print("start time: " … system.getTimer());
elseif(event.type == “applicationResume”) then
print("resume time: " … system.getTimer());
elseif(event.type == “applicationSuspend”) then
print("suspend time: " … system.getTimer());
elseif(event.type == “applicationExit”) then
print("exit time: " … system.getTimer());
end
end
– listen for the system event
Runtime:addEventListener(“system”, onSystemEvent);
Here’s the log when running in 484:
start time: 15
suspend time: 653
resume time: 1053
suspend time: 926
resume time: 1350
suspend time: 1443
resume time: 2379
suspend time: 1671
resume time: 2046
suspend time: 1881
*Notice how the system time goes up and down and up and down unpredictably. This was not the case for me with 268:
start time: 39
suspend time: 713
resume time: 842
suspend time: 962
resume time: 1082
suspend time: 1186
resume time: 1297
suspend time: 1409
resume time: 1514
*Notice that the system time is always increasing
Anyone have any thoughts?
Thanks [import]uid: 29652 topic_id: 9297 reply_id: 309297[/import]