Timers and Synchronization
[Environmental Management]

Collaboration diagram for Timers and Synchronization:

Detailed Description

Functions to measure time.

On the PPU gettimeofday from time.h is used. On the SPU either also gettimeofday or the spu-timer-library is used depending on the configuration during compilation of the MOC-library. When gettimeofday is used on the SPU the time is global in the MOC-environment with the disadvantage that the SPU-threads get their times from the PPU using DMA causing inaccuracy and delays.


Functions

double MOC_Wtime (void)
 Returns a floating-point number of seconds, representing elapsed wall-clock time since some time in the past.
double MOC_Wtick (void)
 Returns the resolution of Moc_Wtime in seconds.


Function Documentation

double MOC_Wtick ( void   ) 

Returns the resolution of Moc_Wtime in seconds.

Returns:
resolution in seconds.

Definition at line 6 of file moc_wtick_ppu.c.

double MOC_Wtime ( void   ) 

Returns a floating-point number of seconds, representing elapsed wall-clock time since some time in the past.

Returns:
wall-clock time in seconds.

Definition at line 6 of file moc_wtime_ppu.c.


Generated on Thu Feb 12 13:50:45 2009 for MPI On Cell (Documentation) by  doxygen 1.5.6