<p>Last month, we released <a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime</a>, a package to work with nanosecond timestamps. See the <a href="http://dirk.eddelbuettel.com/blog/2016/12/16#nanotime_0.0.1">initial release announcement</a> for some background material and a few first examples.</p>
<p><a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime</a> relies on the <a href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html">RcppCCTZ</a> package for high(er) resolution time parsing and formatting: R itself stops a little short of a microsecond. And it uses the <a href="https://cran.r-project.org/package=bit64">bit64</a> package for the actual arithmetic: time at this granularity is commonly represented at (integer) increments (at nanosecond resolution) relative to an offset, for which the standard epoch of Januar 1, 1970 is used. <code>int64</code> types are a perfect match here, and <a href="https://cran.r-project.org/package=bit64">bit64</a> gives us an <code>integer64</code>. Naysayers will point out some technical limitations with R's S3 classes, but it works pretty much as needed here.</p>
<p>The one thing we did not have was Windows support. <a href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html">RcppCCTZ</a> and the <a href="https://github.com/google/cctz">CCTZ library</a> it uses need real C++11 support, and the <code>g++-4.9</code> compiler used on Windows falls a little short lacking inter alia a suitable <code>std::get_time()</code> implementation. Enter <a href="https://github.com/dcdillon">Dan Dillon</a> who ported this from LLVM's libc++ which lead to <a href="http://dirk.eddelbuettel.com/blog/2017/01/08#rcppcctz_0.2.0">Sunday's RcppCCTZ 0.2.0 release</a>.</p>
<p>And now we have all our ducks in a row: everything works on Windows too. The next paragraph summarizes the changes for both this release as well as the initial one last month:</p>
<blockquote>
<h4>Changes in version 0.1.0 (2017-01-10)</h4>
<ul><li><p>Added Windows support thanks to expanded <a href="https://cran.r-project.org/package=RcppCCTZ"><span>RcppCCTZ</span></a> (closes <a href="https://github.com/eddelbuettel/nanotime/issues/6">#6</a>)</p></li>
<li><p>Added &quot;mocked up&quot; demo with nanosecond delay networking analysis</p></li>
<li><p>Added 'fmt' and 'tz' options to output functions, expanded <code>format.nanotime</code> (closing <a href="https://github.com/eddelbuettel/nanotime/issues/2">#2</a> and <a href="https://github.com/eddelbuettel/nanotime/issues/3">#3</a>)</p></li>
<li><p>Added data.frame support</p></li>
<li><p>Expanded tests</p></li>
</ul><h4>Changes in version 0.0.1 (2016-12-15)</h4>
<ul><li><p>Initial CRAN upload.</p></li>
<li><p>Package is functional and provides examples.</p></li>
</ul></blockquote>
<p>We also have a <a href="http://dirk.eddelbuettel.com/cranberries/2017/01/10#nanotime_0.1.0">diff to the previous version</a> thanks to <a href="http://dirk.eddelbuettel.com/cranberries">CRANberries</a>. More details and examples are at the <a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime page</a>; code, issue tickets etc at the <a href="https://github.com/eddelbuettel/nanotime">GitHub repository</a>.</p>
<p>
This post by <a href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> originated on his <a href="http://dirk.eddelbuettel.com/blog/">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.
</p><p>