|
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. | |
| double MOC_Wtick | ( | void | ) |
Returns the resolution of Moc_Wtime 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.
Definition at line 6 of file moc_wtime_ppu.c.
1.5.6