commit | 89d4949f86f4f7b6710e951afefad186c667fd6e | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Tue Sep 09 13:10:49 2014 -0700 |
committer | Christopher Ferris <cferris@google.com> | Tue Sep 09 13:10:49 2014 -0700 |
tree | 6380622f01b2484ea8a827a3becd3b33725eb6d1 | |
parent | 7eff26a02aeb35d6c48e1af8d9bebcc838ad1fd2 [diff] |
Use time() instead of clock() for timeouts. The clock() function returns the processor time used by the process. This is not a good timeout mechanism since the code is suspended most of the time waiting for the forked process to finish. Replace with the time() function. Bug: 17154069 Change-Id: Ib383329f9db269445d71a100553b08e71fddda3f