time.c File Reference

#include <sys/time.h>
#include <time.h>
#include <bool.h>
#include <arch/barrier.h>
#include <macros.h>
#include <errno.h>
#include <sysinfo.h>
#include <as.h>
#include <ddi.h>
#include <libc.h>

Go to the source code of this file.

Functions

int gettimeofday (struct timeval *tv, struct timezone *tz)
 Get time of day.
unsigned int sleep (unsigned int sec)
 Wait unconditionally for specified number of seconds.
time_t time (time_t *tloc)
void tv_add (struct timeval *tv, suseconds_t usecs)
 Add microseconds to given timeval.
int tv_gt (struct timeval *tv1, struct timeval *tv2)
 Decide if one timeval is greater than the other.
int tv_gteq (struct timeval *tv1, struct timeval *tv2)
 Decide if one timeval is greater than or equal to the other.
suseconds_t tv_sub (struct timeval *tv1, struct timeval *tv2)
 Subtract two timevals.
void udelay (useconds_t time)
int usleep (useconds_t usec)
 Wait unconditionally for specified number of microseconds.

Variables

struct {
   volatile sysarg_t   seconds1
   volatile sysarg_t   seconds2
   volatile sysarg_t   useconds
ktime
 Pointer to kernel shared variables with time.


Detailed Description

Definition in file time.c.


Generated on Thu Jun 2 07:45:53 2011 for HelenOS/USB by  doxygen 1.4.7