I want to time a function to see how long it takes to complete:
<$timestarted=(convert( 'now' , 'date' ))>
<functioncall>
<$timeended=(convert( 'now' , 'date' ))>
<$timeelapsed=($timeended-$timestarted)>
I assume that $timeelapsed will return the length in seconds. Is there any way that I can have it return how many milliseconds it took?
<$timestarted=(convert( 'now' , 'date' ))>
<functioncall>
<$timeended=(convert( 'now' , 'date' ))>
<$timeelapsed=($timeended-$timestarted)>
I assume that $timeelapsed will return the length in seconds. Is there any way that I can have it return how many milliseconds it took?