<div dir="ltr"><div><div><div><div><div><div><div><div>Dear all:<br><br></div>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?<br>
<br></div>like:<br><br></div>A=get_system_time();<br><br>*************************<br></div>the segment of code<br>*************************<br></div>B=get_system_time();<br><br></div>Then B-A is the time I am looking for. <br>
<br></div>Thanks<br><br></div>Qiyue Lu<br></div>