XPRBgettime
XPRBgettime |
Purpose
Synopsis
int XPRBgettime(void);
Return value
System time measure in milliseconds.
Example
The following provides an example of obtaining the running time for code.
int starttime; starttime = XPRBgettime(); ... printf("Time: \%g sec", (XPRBgettime()-starttime)/1000);
Further information
This function returns the system time measure in milliseconds. The absolute value is system-dependent. To measure the execution time of a program, this function can be used to calculate the difference between the start time and the time at the desired point in the program.
Related topics