2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::Clock Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::Clock:

Ux::Base List of all members.

Detailed Description

Definition at line 152 of file uxtime.hpp.

Public Member Functions

 Clock (clockid_t cid=CLOCK_REALTIME)
 operator clock_t () const
void nanosleep (int flags, const TimeNsec &nsecs)
void nanosleep (int flags, const TimeNsec &nsecs, const TimeNsec &remain)
void getres (TimeNsec &res)
void gettime (TimeNsec &t)
void settime (const TimeNsec &t)

Static Public Member Functions

void nanosleep (const TimeNsec &nsecs, TimeNsec &remain)
void nanosleep (const TimeNsec &nsecs)
void getcpuclockid (pid_t pid, Clock &clock)
unsigned sleep (unsigned secs)
void usleep (useconds_t usecs)

Protected Attributes

clockid_t clock_id


Constructor & Destructor Documentation

Ux::Clock::Clock clockid_t  cid = CLOCK_REALTIME  )  [inline]
 

Definition at line 157 of file uxtime.hpp.


Member Function Documentation

void Clock::getcpuclockid pid_t  pid,
Clock clock
[static]
 

Calls clock_getcpuclockid.

Definition at line 354 of file uxtime.cpp.

References clock().

void Clock::getres TimeNsec res  ) 
 

Calls clock_getres.

Definition at line 284 of file uxtime.cpp.

References clock_id, and errno.

void Clock::gettime TimeNsec t  ) 
 

Calls clock_gettime.

Definition at line 275 of file uxtime.cpp.

References clock_id, and errno.

void Clock::nanosleep const TimeNsec nsecs  )  [static]
 

Calls nanosleep; does not return remaining time.

Definition at line 343 of file uxtime.cpp.

void Clock::nanosleep const TimeNsec nsecs,
TimeNsec remain
[static]
 

Calls nanosleep; returns remaining time.

Definition at line 332 of file uxtime.cpp.

void Clock::nanosleep int  flags,
const TimeNsec nsecs,
const TimeNsec remain
 

Calls clock_nanosleep; returns remaining time.

Definition at line 302 of file uxtime.cpp.

References clock_id.

void Clock::nanosleep int  flags,
const TimeNsec nsecs
 

Calls clock_nanosleep; does not return remaining time.

Definition at line 317 of file uxtime.cpp.

References clock_id.

Ux::Clock::operator clock_t  )  const [inline]
 

Definition at line 159 of file uxtime.hpp.

void Clock::settime const TimeNsec t  ) 
 

Calls clock_settime.

Definition at line 293 of file uxtime.cpp.

References clock_id, and errno.

unsigned Ux::Clock::sleep unsigned  secs  )  [inline, static]
 

Calls sleep.

Definition at line 172 of file uxtime.hpp.

References sleep().

void Clock::usleep useconds_t  usecs  )  [static]
 

Calls usleep.

Definition at line 369 of file uxtime.cpp.

References errno.


Member Data Documentation

clockid_t Ux::Clock::clock_id [protected]
 

Definition at line 154 of file uxtime.hpp.

Referenced by getres(), gettime(), nanosleep(), and settime().


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:16 2004 for AUP2 Example Source by doxygen 1.3.1