Chromium Code Reviews| Index: src/platform/time.h |
| diff --git a/src/platform/time.h b/src/platform/time.h |
| index 2ce6cdd3e99137505243ca47d139eeab5f7a0e34..2d6fd74c6e23ab8e676afdce97430d55d12eb4ec 100644 |
| --- a/src/platform/time.h |
| +++ b/src/platform/time.h |
| @@ -335,6 +335,9 @@ class TimeTicks V8_FINAL BASE_EMBEDDED { |
| // This method never returns a null TimeTicks. |
| static TimeTicks HighResNow(); |
| + // Returns true if the high-resolution clock is working on this system. |
| + static bool IsHighResClockWorking(); |
|
Hannes Payer (out of office)
2013/10/02 11:27:25
Can we call it IsHighResolutionClockWorking()? And
Benedikt Meurer
2013/10/02 12:27:46
Done.
|
| + |
| // Returns true if this object has not been initialized. |
| bool IsNull() const { return ticks_ == 0; } |