Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

poslib/postime.h File Reference

Posadis time functions. More...

Go to the source code of this file.


Classes

class   postime_t
  Time with millisecond precision. More...


Functions

postime_t  getcurtime ()
  get the current time

timespec  postimespec (int timeout)
  timespec for given millisecond timeout


Detailed Description

Posadis time functions.

The functions in this source file, as well as the postime_t class defined here, provide easy access to times in a system-independent way.

Definition in file postime.h.


Function Documentation

postime_t getcurtime  ) 
 

get the current time

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

Returns:
The current time

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).

Parameters:
timeout  Number of milliseconds from now the timespec is set to
Returns:
A timespec structure containing an absolute time.

Generated on Fri Dec 24 19:55:15 2004 for Poslib by doxygen 1.3.7