Help Using BeBee Class Timer

Hey guys all im trying to do is create a simple Timer for my game that counts while the play plays the level. i cant seem to get it to work, i have read his tutorial on this several times… here is what im doing:

local timeCounter = resetTimeCounter()  
  
local timePassed = getCountedTime( timeCounter )  
  
local gameTime = display.newText(timeCounter, 450, 5 native.systemFontbold, 35)  
  

whenever i do this i get an error on the timePassed Line,
Jon mentions in his tutorial that, “You must pass your counter variable as an argument to getCountedTime() in order for things to work properly.” I cant seem to understand what he means, can someone please help me out with this very simple task? thank you
[import]uid: 19620 topic_id: 6948 reply_id: 306948[/import]

Hey
Do it like this and the variable seconds will give you the amount of seconds and milliseconds played. Works great,

[lua]game = require( “beebegames” )
secondsTimer = 60000 – nr of milliseconds to count down from
timeLeft = secondsTimer – to hold time left
gameTimer = game.resetTimeCounter()

Runtime:addEventListener(“enterFrame”, gameLoop) – runs 30fps

function gameLoop()
if ((secondsTimer-game.getTimeCounted(gameTimer)) < 1) then
– game over stuff here
else
timeLeft = comma_value(secondsTimer-game.getTimeCounted(gameTimer))
– print out timeLeft to screen or where you want it
end
end[/lua]

Hope it helps [import]uid: 22737 topic_id: 6948 reply_id: 24341[/import]

Thank you so much, seriously i couldnt find any help for the longest time, ill let you know how it goes! [import]uid: 19620 topic_id: 6948 reply_id: 24354[/import]

Actually what im trying to do is have a timer that counts up, that changes things a little [import]uid: 19620 topic_id: 6948 reply_id: 24366[/import]