Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1e180f72
Commit
1e180f72
authored
Jun 16, 2007
by
Arnaldo Carvalho de Melo
Committed by
David S. Miller
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[KTIME]: Introduce ktime_add_us
Signed-off-by:
Arnaldo Carvalho de Melo
<
acme@ghostprotocols.net
>
parent
f1c91da4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
include/linux/ktime.h
include/linux/ktime.h
+5
-0
No files found.
include/linux/ktime.h
View file @
1e180f72
...
...
@@ -284,6 +284,11 @@ static inline s64 ktime_us_delta(const ktime_t later, const ktime_t earlier)
return
ktime_to_us
(
ktime_sub
(
later
,
earlier
));
}
static
inline
ktime_t
ktime_add_us
(
const
ktime_t
kt
,
const
u64
usec
)
{
return
ktime_add_ns
(
kt
,
usec
*
1000
);
}
/*
* The resolution of the clocks. The resolution value is returned in
* the clock_getres() system call to give application programmers an
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment