TIMESPEC_TRUNC
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
timespec_trunc - Truncate timespec to a granuality
SYNOPSIS
"SYNOPSIS"
struct timespec timespec_trunc (struct timespec t, unsigned gran);
ARGUMENTS
- t
-
Timespec
- gran
-
Granuality in ns.
DESCRIPTION
Truncate a timespec to a granuality. gran must be smaller than a second.
Always rounds down.
This function should be only used for timestamps returned by
current_kernel_time or CURRENT_TIME, not with do_gettimeofday because
it doesn't handle the better resolution of the later.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:55 GMT, October 09, 2005