<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculating elapsed CPU time in Intel Confidential Computing</title>
    <link>https://community.intel.com/t5/Intel-Confidential-Computing/Calculating-elapsed-CPU-time/m-p/1146615#M2442</link>
    <description>&lt;P&gt;I am writing C++ code to determine the elapsed time it takes for an operation inside the enclave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this purpose I am using std::clock() , to determine the CPU time. I am starting the timer in the untrusted layer. Once the enclave operations are complete and the control comes back to the untrusted layer, I am calculating the elapsed time.&lt;/P&gt;&lt;P&gt;Question:-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is my method of determining elapsed time correct?&lt;/LI&gt;&lt;LI&gt;When I do an enclave call, doesnt the CPU go into context switch ? And if it does does it treat the enclave also to be the same process? FYI:: My program is a single threaded process.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 05 Feb 2019 12:47:13 GMT</pubDate>
    <dc:creator>kh__Naveen</dc:creator>
    <dc:date>2019-02-05T12:47:13Z</dc:date>
    <item>
      <title>Calculating elapsed CPU time</title>
      <link>https://community.intel.com/t5/Intel-Confidential-Computing/Calculating-elapsed-CPU-time/m-p/1146615#M2442</link>
      <description>&lt;P&gt;I am writing C++ code to determine the elapsed time it takes for an operation inside the enclave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this purpose I am using std::clock() , to determine the CPU time. I am starting the timer in the untrusted layer. Once the enclave operations are complete and the control comes back to the untrusted layer, I am calculating the elapsed time.&lt;/P&gt;&lt;P&gt;Question:-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is my method of determining elapsed time correct?&lt;/LI&gt;&lt;LI&gt;When I do an enclave call, doesnt the CPU go into context switch ? And if it does does it treat the enclave also to be the same process? FYI:: My program is a single threaded process.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:47:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Confidential-Computing/Calculating-elapsed-CPU-time/m-p/1146615#M2442</guid>
      <dc:creator>kh__Naveen</dc:creator>
      <dc:date>2019-02-05T12:47:13Z</dc:date>
    </item>
  </channel>
</rss>

