Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
postime.cpp File Reference
#include "dibbler-config.h"
#include "postime.h"
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
#include <sys/timeb.h>
+ Include dependency graph for postime.cpp:


postime_t getcurtime ()
 get the current time
void gettimeofday (timeval *a, int *b)
timespec postimespec (int timeout)
 timespec for given millisecond timeout

Function Documentation

postime_t getcurtime ( )

get the current time

Retrieves the current time with millisecond precision and stores it in a postime_t structure.

The current time
void gettimeofday ( timeval *  a,
int *  b 
timespec postimespec ( int  timeout)

timespec for given millisecond timeout

Returns a timespec structure that can be used, among other things, for the pthread_cond_timedwait function (which is what it was designed for).

timeoutNumber of milliseconds from now the timespec is set to
A timespec structure containing an absolute time.