<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:fpizlo@apple.com" title="Filip Pizlo <fpizlo@apple.com>"> <span class="fn">Filip Pizlo</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - We should stop using std::chrono because std::chrono::duration casts are prone to overflows"
href="https://bugs.webkit.org/show_bug.cgi?id=152045">bug 152045</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>webkit-unassigned@lists.webkit.org
</td>
<td>fpizlo@apple.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - We should stop using std::chrono because std::chrono::duration casts are prone to overflows"
href="https://bugs.webkit.org/show_bug.cgi?id=152045#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - We should stop using std::chrono because std::chrono::duration casts are prone to overflows"
href="https://bugs.webkit.org/show_bug.cgi?id=152045">bug 152045</a>
from <span class="vcard"><a class="email" href="mailto:fpizlo@apple.com" title="Filip Pizlo <fpizlo@apple.com>"> <span class="fn">Filip Pizlo</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=293572&action=diff" name="attach_293572" title="possibly solution">attachment 293572</a> <a href="attachment.cgi?id=293572&action=edit" title="possibly solution">[details]</a></span>
possibly solution
This std::chrono nonsense has got to stop. I've had to write so much boilerplate defend-against-overflow code because of std::chrono. I don't want to do this anymore.
This patch creates wrappers for doubles so that we can use doubles for time. The types are easy and have operator overloading for algebra:
Seconds
WallTime
MonotonicTime
TimeWithDynamicClockType
I'm going to see how easy it is to teach existing std::chrono clients to use this instead.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>