Skip to content
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

Modify time functions #225

Merged
merged 8 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Linux/package/include/sgx_tsgxssl.edl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enclave {

untrusted {
void u_sgxssl_ftime([out, size=timeb_len] void * timeptr, uint32_t timeb_len);
void u_sgxssl_usleep(int micro_seconds);
//void u_sgxssl_usleep(int micro_seconds);
};

};
6 changes: 4 additions & 2 deletions Linux/sgx/libsgx_tsgxssl/ttime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ int sgxssl_clock_gettime(int clk_id, struct timespec *tp)

void sgxssl_usleep(int micro_seconds)
{
u_sgxssl_usleep(micro_seconds);
(void)(micro_seconds);
return;
}
void sgxssl_sleep(int seconds)
{
u_sgxssl_usleep(1000000 * seconds);
(void)(seconds);
return;
}
}