<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:fpizlo&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <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&#64;lists.webkit.org
           </td>
           <td>fpizlo&#64;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&#64;apple.com" title="Filip Pizlo &lt;fpizlo&#64;apple.com&gt;"> <span class="fn">Filip Pizlo</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=293572&amp;action=diff" name="attach_293572" title="possibly solution">attachment 293572</a> <a href="attachment.cgi?id=293572&amp;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>