1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
.\"
.\" Copyright (C) 1997 Jerry Epplin. All rights reserved.
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" The author assumes no responsibility for errors or omissions, or for
.\" damages resulting from the use of the information contained herein.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH RT_GET_TIME 2 "11 July 1997" "Real-Time Linux" "Real-Time Linux"
.SH NAME
rt_get_time \- get the current time
.SH SYNOPSIS
.nf
.B #define MODULE
.B #include <linux/module.h>
.B #include <linux/kernel.h>
.B #include <linux/version.h>
.B #include <linux/errno.h>
.B #include <linux/rt_sched.h>
.fi
.sp
.BI "RTIME rt_get_time(void);
.SH DESCRIPTION
.B rt_get_time
returns the number of real-time clock ticks since system bootup. This
is primarily helpful in conjunction with the defined constant
.B RT_TICKS_PER_SECOND
for scheduling real-time tasks. For example, a time interval of
100 msecs could be referred to as
.sp
RTIME intvl = (RT_TICKS_PER_SECOND / 10);
.sp
Then, for example,
.sp
rt_task_make_periodic(&mytask, rt_get_time() + 5 * intvl, intvl);
.sp
would schedule mytask to run at 100 msec intervals starting 500 msec
from the present time.
.SH "RETURN VALUE"
The number of clock ticks since system bootup time is returned.
.SH ERRORS
None.
.SH "SEE ALSO"
.BR rt_get_time (2),
.BR rt_task_make_periodic (2)
.SH AUTHOR
This manual page was written by Jerry Epplin.
.P
Copyright (C) 1997 Jerry Epplin, placed under the GNU General Public
License, see the file copyright for details.
|