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

TEE_GetSystemTime invalid time #315

Open
jdeus opened this issue Oct 9, 2018 · 3 comments
Open

TEE_GetSystemTime invalid time #315

jdeus opened this issue Oct 9, 2018 · 3 comments
Labels

Comments

@jdeus
Copy link

jdeus commented Oct 9, 2018

On rpi3 with the default governor (powersave), The results of seconds of a TEE_Time passed to TEE_GetSystemTime must be divided by 10 to obtain a valid result.

Example:

TEE_Time startt, stopt;

TEE_GetSystemTime(&startt);
(...)
TEE_GetSystemTime(&stopt);

IMSG("%d.%d", startt.seconds, startt.millis);
IMSG("%d.%d", stopt.seconds, stopt.millis);

Produces:

I/TA: 2831.571
I/TA: 2929.64

While only ~9 seconds have elapsed.

Expected:

I/TA: 283.1571
I/TA: 292.964

@jbech-linaro
Copy link
Contributor

Yes, this seems like a bug to me. Do you think you could make a patch for it?

@jbech-linaro
Copy link
Contributor

Adding "bug" label so we can pick this up at some time later.

@github-actions
Copy link

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants