Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Calculating elapsed CPU time

kh__Naveen
Beginner
311 Views

I am writing C++ code to determine the elapsed time it takes for an operation inside the enclave.

 

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.

Question:-

  1. Is my method of determining elapsed time correct?
  2. 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.
0 Kudos
0 Replies
Reply