title: How to get total processing time when using wait(NULL) function?
body: <p>I want to know processing time of simple multiprocessing code but if parent process uses <code>do while(wait(NULL) &gt; 0);</code> to wait child processes, clock() of parent process doesn't return processing time.</p>
  
  <p>I guess <code>wait(NULL)</code> makes <code>clock()</code> return only unwaiting time (total time except waiting).</p>
  
  <p>Is there other way to check total processing time?</p>