OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """WatchdogTimer timeout objects.""" | 5 """WatchdogTimer timeout objects.""" |
6 | 6 |
7 import time | 7 import time |
8 | 8 |
9 | 9 |
10 class WatchdogTimer(object): | 10 class WatchdogTimer(object): |
(...skipping 27 matching lines...) Expand all Loading... |
38 return None | 38 return None |
39 | 39 |
40 def IsTimedOut(self): | 40 def IsTimedOut(self): |
41 """Whether the watchdog has timed out. | 41 """Whether the watchdog has timed out. |
42 | 42 |
43 Returns: | 43 Returns: |
44 True if the watchdog has timed out, False otherwise. | 44 True if the watchdog has timed out, False otherwise. |
45 """ | 45 """ |
46 remaining = self.GetRemaining() | 46 remaining = self.GetRemaining() |
47 return remaining is not None and remaining < 0 | 47 return remaining is not None and remaining < 0 |
OLD | NEW |