Measuring performance in AS3

Dear all,

I just want to ask, how you measure how fast flash is executing a code. I would like to compare two functions in order to know which is faster.

Thanks in advance