<div dir="ltr"><div style="font-family:monospace,monospace" class="gmail_default">Hello,<br></div><div style="font-family:monospace,monospace" class="gmail_default">you can check out our chunks implementation (a little different from the NDN cat/put chunks one) that implements a GObject layer for progress/complete signal if that's usefull for you:<br><a href="https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py">https://github.com/endlessm/endless-ndn/blob/master/eos_data_distribution/ndn/chunks.py</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 6:14 PM, Klaus Schneider <span dir="ltr"><<a href="mailto:klaus@cs.arizona.edu" target="_blank">klaus@cs.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We are currently updating the ndncatchunks code: <a href="https://gerrit.named-data.net/#/c/3432/" rel="noreferrer" target="_blank">https://gerrit.named-data.net/<wbr>#/c/3432/</a><br>
<br>
you can check the code out via "git fetch <a href="https://gerrit.named-data.net/ndn-tools" rel="noreferrer" target="_blank">https://gerrit.named-data.net/<wbr>ndn-tools</a> refs/changes/32/3432/4 && git checkout FETCH_HEAD"<br>
<br>
It contains a function printSummary() which might be what you want:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
void<br>
PipelineInterestsFixedWindow::<wbr>printSummary() const<br>
{<br>
  time::steady_clock::duration dur = time::steady_clock::now() - m_startTime;<br>
  double timePassed = static_cast<double>(dur.count(<wbr>)) / 1000000; // in ms<br>
  double throughput = (8 * m_receivedSize * 1000) / timePassed;<br>
  std::string throughputUnit;<br>
<br>
  computeThroughput(throughput, throughputUnit);<br>
<br>
  std::cerr << "\nAll segments have been received.\n"<br>
            << "Total # of segments received: " << m_nReceived << "\n"<br>
            << "Time used: " << timePassed << " ms" << "\n"<br>
            << "Goodput: " << throughput << " " << throughputUnit << "\n";<br>
}<br>
</blockquote>
<br>
Best regards,<br>
Klaus<span class=""><br>
<br>
On 01/11/2017 01:49 PM, Md Toufiqul Islam wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Dear Klaus,<br>
<br>
Thank you so much for your reply.  File transfer / retrieval is not the<br>
problem. Problem is retrieval time (millisecond).<br>
<br>
I have already tried ndncatchunks / ndnputchunks. But these doesn't<br>
provide me any information about download time / retrieval time of the<br>
contents either. Is there any other idea ?<br>
<br>
<br>
Best regards<br>
Muhammad<br>
<br>
<br>
On Wed, Jan 11, 2017 at 7:17 PM, Klaus Schneider <<a href="mailto:klaus@cs.arizona.edu" target="_blank">klaus@cs.arizona.edu</a><br></span><div><div class="h5">
<mailto:<a href="mailto:klaus@cs.arizona.edu" target="_blank">klaus@cs.arizona.edu</a>>> wrote:<br>
<br>
    Hi Muhammad,<br>
<br>
    you might want to use ndncatchunks/ndnputchunks from<br>
    <a href="https://github.com/named-data/ndn-tools" rel="noreferrer" target="_blank">https://github.com/named-data/<wbr>ndn-tools</a><br>
    <<a href="https://github.com/named-data/ndn-tools" rel="noreferrer" target="_blank">https://github.com/named-data<wbr>/ndn-tools</a>><br>
<br>
    Best regards,<br>
    Klaus<br>
<br>
<br>
    On 01/11/2017 10:49 AM, Md Toufiqul Islam wrote:<br>
<br>
        Hello Everyone,<br>
<br>
        I hope all of you are doing great. I have a very small question<br>
        which I<br>
        couldn't find any solution yet. I believe this is the right<br>
        place to ask<br>
        about.<br>
<br>
        I have installed nfd, ndn-cxx and Repo-ng on two of computers<br>
        willing to<br>
        insert & retrieve data to & from data repository. I have done this<br>
        successfully using ndnputfile & ndngetfile command. But after<br>
        retrieving any data using "ndngetfile" command, it doesn't show<br>
        me any<br>
        message regarding how much time it needed to fetch the required data<br>
        from the repository. Can anyone help me regarding that? How can<br>
        I see<br>
        the download time?<br>
<br>
        Here is an example. When I retrieve a file from one computer to<br>
        other,<br>
        ndngetfile shows the following message:<br>
<br>
                ndngetfile /example/data/1/test.txt<br>
<br>
<br>
        INFO: End of file is reached.<br>
        INFO: Total # of segments received: 188<br>
        INFO: Total # bytes of content received: 187537<br>
<br>
        On the above, there are no information about retrieve/download<br>
        time of<br>
        the received data. How can I see retrieve/download time? I will<br>
        be glad<br>
        to have valuable reply from yours.<br>
<br>
        With regards<br>
        Muhammad Toufiqul<br>
<br>
<br>
        ______________________________<wbr>_________________<br>
        Nfd-dev mailing list<br></div></div>
        <a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a> <mailto:<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.<wbr>edu</a>><br>
        <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/nfd-dev</a><br>
        <<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a>><br>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/nfd-dev</a><br>
</div></div></blockquote></div><br></div>