Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe-x86
Commits
1e180f72
Commit
1e180f72
authored
Jun 16, 2007
by
Arnaldo Carvalho de Melo
Committed by
David S. Miller
Jul 10, 2007
Browse files
[KTIME]: Introduce ktime_add_us
Signed-off-by:
Arnaldo Carvalho de Melo
<
acme@ghostprotocols.net
>
parent
f1c91da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
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