Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58919
b: refs/heads/master
c: f1c91da
h: refs/heads/master
i:
  58917: 072c2f6
  58915: 8969f18
  58911: e93165e
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Jul 11, 2007
1 parent 6525370 commit 577e2eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd36a9aba44e4ddbac011de2cb14a70444487303
refs/heads/master: f1c91da44728fba24927e44056a56e507c11cf7b
5 changes: 5 additions & 0 deletions trunk/include/linux/ktime.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ static inline s64 ktime_to_us(const ktime_t kt)
return (s64) tv.tv_sec * USEC_PER_SEC + tv.tv_usec;
}

static inline s64 ktime_us_delta(const ktime_t later, const ktime_t earlier)
{
return ktime_to_us(ktime_sub(later, earlier));
}

/*
* The resolution of the clocks. The resolution value is returned in
* the clock_getres() system call to give application programmers an
Expand Down

0 comments on commit 577e2eb

Please sign in to comment.