Dear all:

I have a segment of code in PETSc and am trying to measure its execution
time. Is there built-in functions in PETSc returning the current system
time? So I can call this function before and after the segment of code then
do a 'minus' to get the time consumed?

like:

A=get_system_time();

*************************
the segment of code
*************************
B=get_system_time();

Then B-A is the time I am looking for.

Thanks

Qiyue Lu

Reply via email to