Skip to content

06 timers#151

Open
marynamalakhova wants to merge 2 commits into
Kernel-GL-HRK:Maryna.Malakhovafrom
marynamalakhova:06_timers
Open

06 timers#151
marynamalakhova wants to merge 2 commits into
Kernel-GL-HRK:Maryna.Malakhovafrom
marynamalakhova:06_timers

Conversation

@marynamalakhova
Copy link
Copy Markdown

Task 06 Homework

Comment thread 06_timers/time_module/get_time_module.c Outdated
Comment on lines +37 to +38
(s64)r_new_time.tv_sec-(s64)r_last_time.tv_sec,
r_new_time.tv_nsec-r_last_time.tv_nsec);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conversation is correct only for values where r_new_time.tv_nsec >= r_last_time.tv_nsec.

Copy link
Copy Markdown
Author

@marynamalakhova marynamalakhova Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I`ve fixed, thank you

@marynamalakhova marynamalakhova force-pushed the 06_timers branch 3 times, most recently from 1efe9b1 to 9ffdfe0 Compare April 5, 2021 15:37
Add a module to store absolute time of last reading in sysfs.
Also the relative passed time is stored there

Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
Create use space app to get absolute time with nsec resolution

Signed-off-by: Maryna Malakhova <maryna.malakhova@globallogic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants