Determine the TIME is takes to complete

I have a number of scripts that I would like to determine the TIME is takes to complete.
In Perl its very easy to do but I have not been able to figure out how to implement similar commands under RouterOS.

In Perl to accomplish this task I would:

my $temp = time();
my $Start = $temp;
...............
.............
...............
...........
my $End = time();
my $Diff = $End - $Start;
print "Process took ".$Diff." seconds to run.\n";

Can someone provide the correct directive sequence that would work under RouterOS please?

So it looks like what I need is is a requested feature … http://forum.mikrotik.com/t/built-in-function-library/117288/1

using bash its easy
SECONDS=0

do some work

duration=$SECONDS
echo “$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed.”

The request for date and time calculation is older. But it seems there is an alternative…
http://forum.mikrotik.com/t/calculate-the-difference-between-two-dates/107120/1

What about :time command?