<div dir="ltr">VS2013 support is dropped in about 1 week from now :) </div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 6, 2016 at 11:37 PM Mueller-Roemer, Johannes Sebastian <<a href="mailto:Johannes.Sebastian.Mueller-Roemer@igd.fraunhofer.de">Johannes.Sebastian.Mueller-Roemer@igd.fraunhofer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="#0563C1" vlink="#954F72" class="gmail_msg">
<div class="m_5751962044863887077WordSection1 gmail_msg">
<p class="MsoNormal gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">Visual Studio up to and including VS2013 implements std::chrono::high_resolution_clock in an absolutely unusable manner
 (it is a very low resolution clock…) [1]. Also, division is implemented incorrectly [2]. I have run into both issues in my private developments, so I would avoid them as long as VS2013 is supported by LLVM (I believe it still is?).<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">    [1]:
<a href="https://stackoverflow.com/questions/31643279" class="gmail_msg" target="_blank">https://stackoverflow.com/questions/31643279</a><u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg">    [2]:
<a href="https://stackoverflow.com/questions/26372596" class="gmail_msg" target="_blank">https://stackoverflow.com/questions/26372596</a><u class="gmail_msg"></u><u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><span lang="EN-US" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></p>
<p class="MsoNormal gmail_msg"><b class="gmail_msg"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="gmail_msg">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="gmail_msg"> llvm-dev [mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev-bounces@lists.llvm.org</a>]
<b class="gmail_msg">On Behalf Of </b>Zachary Turner via llvm-dev<br class="gmail_msg">
<b class="gmail_msg">Sent:</b> Friday, October 7, 2016 03:11<br class="gmail_msg">
<b class="gmail_msg">To:</b> llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a>><br class="gmail_msg">
<b class="gmail_msg">Subject:</b> [llvm-dev] Using std::chrono<u class="gmail_msg"></u><u class="gmail_msg"></u></span></p></div></div><div lang="DE" link="#0563C1" vlink="#954F72" class="gmail_msg"><div class="m_5751962044863887077WordSection1 gmail_msg">
<p class="MsoNormal gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></p>
<div class="gmail_msg">
<p class="MsoNormal gmail_msg">Hi all,<br class="gmail_msg">
<br class="gmail_msg">
We're considering using std::chrono more heavily in lldb. However, A quick search of the llvm, clang, and lld codebases shos almost zero usage of chrono. I wanted to see if this was for technical reasons (eg some compiler doesn't support it well) or simply
 because nobody has needed it yet. If it's the former then I'd like to be aware of the issues so we don't fall into any traps.<br class="gmail_msg">
<br class="gmail_msg">
If it's the latter, then we're good to go. Would it be worth adding any chrono helper functions to llvm/Support? On the one hand, it seems generally useful. But on the other hand, if nobody's using it yet, maybe it's not generally useful enough.<br class="gmail_msg">
<br class="gmail_msg">
Also, are there any chrono experts around who would be willing to review some patches?<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</div>
</div></div></blockquote></div>