I have 2 functions that do the same thing, but use a different algorithm, and i would like to see which is faster.
Below is a sample of the code, which does not work, but it gives the idea of what im going for.
[lua]wordArray = string.explode( " ", content() )
– wordArray = string.split( content(), “[^%s]+” )
function printTime( event )
print( event.time )
end
wordArray:addEventListener( “timer”, printTime )[/lua]
How can i do this? [import]uid: 50514 topic_id: 20192 reply_id: 320192[/import]