time & date

9 views
Skip to first unread message

Sergey Solovyev

unread,
Jul 11, 2010, 5:24:16 PM7/11/10
to tumbi
I would like to measure the time of my function execution. I found
gdate interface in nsp help, but it's for year/month/day
representation as far as I understood it. is there any way to work
with the hours/minutes/seconds?

bruno

unread,
Jul 11, 2010, 5:51:59 PM7/11/10
to tumbi
May be cputime() is what you want :

t0 = cputime();
............................
T = cputime() - t0;

it gives the cputime in second (cputime used getrusage most
of the cases).

hth
Bruno
Reply all
Reply to author
Forward
0 new messages