lib/sw_services/xilplmi/src/xplmi_proc.c
static void XPlmi_GetPerfTime(u64 TCur, u64 TStart, XPlmi_PerfTime *PerfTime)
{
	u64 PerfNs;
	u64 TDiff = TCur - TStart;
	double PerfTemp;

	/* Convert TPerf into nanoseconds */
	PerfTemp = ((double)TDiff * XPLMI_GIGA) / (double)PmcIroFreq;
	PerfNs = (u64)PerfTemp;
	PerfTemp /= XPLMI_MEGA;
	PerfTime->TPerfMs = (u64)PerfTemp;
	PerfTime->TPerfMsFrac = PerfNs % (u64)XPLMI_MEGA;
	PerfTime->TPerfMsFrac /= (u64)XPLMI_MILLI;
}
/*****************************************************************************/
/**
 * @brief	This function prints the total time taken between two points for
 * performance measurement.
 *
 * @param	TCur is the current time
 * @param	TStart is the start time
 * @param	PerfTime is the pointer to variable holding the performance time
 *
 * @return	None
 *
 *****************************************************************************/
@brief       This function prints the total time taken between two points for
performance measurement.

@param       TCur is the current time
@param       TStart is the start time
@param       PerfTime is the pointer to variable holding the performance time

@return      None
@brief This function prints the total time taken between two points for performance measurement . @param TCur is the current time @param TStart is the start time @param PerfTime is the pointer to variable holding the performance time @return None
static void XPlmi_GetPerfTime(u64 TCur, u64 TStart, XPlmi_PerfTime *PerfTime)
{
	u64 PerfNs;
	u64 TDiff = TCur - TStart;
	double PerfTemp;
	PerfTemp = ((double)TDiff * XPLMI_GIGA) / (double)PmcIroFreq;
	PerfNs = (u64)PerfTemp;
	PerfTemp /= XPLMI_MEGA;
	PerfTime->TPerfMs = (u64)PerfTemp;
	PerfTime->TPerfMsFrac = PerfNs % (u64)XPLMI_MEGA;
	PerfTime->TPerfMsFrac /= (u64)XPLMI_MILLI;
}
static void XPlmi_GetPerfTime ( u64 TCur , u64 TStart , XPlmi_PerfTime * PerfTime ) { u64 PerfNs ; u64 TDiff = TCur - TStart ; double PerfTemp ; PerfTemp = ( ( double ) TDiff * XPLMI_GIGA ) / ( double ) PmcIroFreq ; PerfNs = ( u64 ) PerfTemp ; PerfTemp /= XPLMI_MEGA ; PerfTime -> TPerfMs = ( u64 ) PerfTemp ; PerfTime -> TPerfMsFrac = PerfNs % ( u64 ) XPLMI_MEGA ; PerfTime -> TPerfMsFrac /= ( u64 ) XPLMI_MILLI ; }
@brief       This function prints the total time taken between two points for
 performance measurement.
@brief This function prints the total time taken between two points for performance measurement .
/* Convert TPerf into nanoseconds */