timers.cpp File Reference

#include <SysThread.h>
#include <CmnErrors.h>
#include <pthread.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <time.h>

Namespaces

namespace  palmos

Functions

void palmos::clock_timespec_add_nano (struct timespec *t, nsecs_t adj)
void palmos::clock_timespec_from_nano (struct timespec *t, nsecs_t desired)
nsecs_t SysGetRunTime (void)
 Return the amount of time (in nanoseconds) the system has been running.
status_t SysThreadDelay (nsecs_t timeout, timeoutFlags_t flags)
 Go to sleep for the given amount of time.


Function Documentation

nsecs_t SysGetRunTime void   ) 
 

Return the amount of time (in nanoseconds) the system has been running.

This time does not include time during which the device is asleep.

status_t SysThreadDelay nsecs_t  timeout,
timeoutFlags_t  flags
 

Go to sleep for the given amount of time.