[petsc-users] Functions to return system time

Qiyue Lu qiyuelu1 at gmail.com
Sun Mar 9 12:16:13 CDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140309/d4c0ba39/attachment.html>


More information about the petsc-users mailing list