time.cc File Reference
#include "time.h"
Functions | |
void | startTimer (CTimer *t) |
void | stopTimer (CTimer *t) |
void | printTimer (ostream &out, CTimer *t) |
CString | printTimer (CTimer *t) |
unsigned int | secondsElapsed (CTimer *t) |
Function Documentation
void printTimer | ( | ostream & | out, | |
CTimer * | t | |||
) |
printTimer () The function prints the value of the timer in milliseconds to the supplied output stream.
References _CTimer::time.
Referenced by analyzeCSDFG(), FSMSADF::ToolAnalyze::analyzeGraph(), analyzeSDFG(), bindApplicationGraphsToArchitectureGraph(), mapApplicationGraphToArchitectureGraph(), FSMSADF::mapApplicationGraphToArchitectureGraph(), LoadBalanceBinding::minimizeTimeSlices(), LoadBalanceBinding::optimizeTimeSlices(), SDF3Flow::run(), FSMSADF::SDF3Flow::run(), and solveSchedulingProblems().
printTimer () The function returns the value of the timer in milliseconds as a string.
References _CTimer::time.
unsigned int secondsElapsed | ( | CTimer * | t | ) |
secondsElapsed () The function returns the number of seconds elapsed
References _CTimer::time.
Referenced by LoadBalanceBinding::minimizeTimeSlices().
void startTimer | ( | CTimer * | t | ) |
startTimer () The function start measuring the elapsed user and system time from this point onwards.
References _CTimer::rStart.
Referenced by analyzeCSDFG(), FSMSADF::ToolAnalyze::analyzeGraph(), analyzeSDFG(), bindApplicationGraphsToArchitectureGraph(), mapApplicationGraphToArchitectureGraph(), FSMSADF::mapApplicationGraphToArchitectureGraph(), LoadBalanceBinding::minimizeTimeSlices(), LoadBalanceBinding::optimizeTimeSlices(), SDF3Flow::run(), FSMSADF::SDF3Flow::run(), and solveSchedulingProblems().
void stopTimer | ( | CTimer * | t | ) |
stopTimer () The function stops measuring the elapsed user and system time and it computes the total elapsed time. This time is accesible via t->time (struct timeval).
References _CTimer::rEnd, _CTimer::rStart, and _CTimer::time.
Referenced by analyzeCSDFG(), FSMSADF::ToolAnalyze::analyzeGraph(), analyzeSDFG(), bindApplicationGraphsToArchitectureGraph(), mapApplicationGraphToArchitectureGraph(), FSMSADF::mapApplicationGraphToArchitectureGraph(), LoadBalanceBinding::minimizeTimeSlices(), LoadBalanceBinding::optimizeTimeSlices(), SDF3Flow::run(), FSMSADF::SDF3Flow::run(), and solveSchedulingProblems().