OSDN Git Service

Use time() instead of clock() for timeouts.
authorChristopher Ferris <cferris@google.com>
Tue, 9 Sep 2014 20:10:49 +0000 (13:10 -0700)
committerChristopher Ferris <cferris@google.com>
Tue, 9 Sep 2014 20:10:49 +0000 (13:10 -0700)
commit89d4949f86f4f7b6710e951afefad186c667fd6e
tree6380622f01b2484ea8a827a3becd3b33725eb6d1
parent7eff26a02aeb35d6c48e1af8d9bebcc838ad1fd2
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
cmds/dumpstate/utils.c