-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to capture the time duration inside an enclave? #1003
Comments
There is no trust time support inside SGX enclaves. If you want to use time, an ocall is required. And you should be aware that the time cannot be trusted. |
I'm not looking for a trust time, I just want to log the time to test the efficiency of running some functions within the enclave. |
OK. Perhaps you can try to use the |
You can also try Intel® VTune™ Profiler, and the stand-alone version is recommended. It is able to collect the CPU time in clockticks of each functions even inside a SGX enclave, in GUI or CLI. |
I'm new to intel sgx. I need an accurate timekeeper in enclave, preferably down to the millisecond.
I write
#include <chrono>
in enclave.cpp and test it inside an enclave function, but the error is reported as below:I write
#include <time.h>
in enclave.cpp, but it still gives me the following error:The Enclave_Link_Flags in makefile:
The text was updated successfully, but these errors were encountered: