I think most people use the Today() function for this. For instance,
Names Default To Here( 1 );
starttime = Today();
pl = {};
For( i = 1, i <= 10000000, i++,
Insert Into( pl, i )
);
endtime = Today();
Print( "Execution took " || Char( endtime - starttime ) || " seconds." );
I like to use HP Time(), which works just like Today(), but it's in microseconds.
Names Default To Here( 1 );
starttime = HP Time();
pl = {};
For( i = 1, i <= 10000000, i++,
Insert Into( pl, i )
);
endtime = HP Time();
Print( "Execution took " || Char( endtime - starttime ) || " microseconds." );