software/drivers/sd8887/src/wlan/mapp/mlanutl/mlanroamagent.c
/**
 *  @brief          Coverts ms to exactTime
 *
 *  @param ms       number of milliseconds
 *  @param t        converted into this structure
 *
 *  @return         none
 */
@brief          Coverts ms to exactTime
@param ms       number of milliseconds
@param t        converted into this structure

@return         none
@brief Coverts ms to exactTime @param ms number of milliseconds @param t converted into this structure @return none
static void
ms2exactTime(t_u32 ms, ExactTime_t *t)
{
	memset(t, 0, sizeof(ExactTime_t));
	t->msecs = ms % 1000;
	if (ms >= 1000) {
		ms = (ms - t->msecs) / 1000;
		t->secs = ms % 60;
		if (ms >= 60) {
			ms = (ms - t->secs) / 60;
			t->mins = ms % 60;
			if (ms >= 60) {
				ms = (ms - t->mins) / 60;
				t->hrs = ms;
			}
		}
	}
	return;
}
static void ms2exactTime ( t_u32 ms , ExactTime_t * t ) { memset ( t , 0 , sizeof ( ExactTime_t ) ) ; t -> msecs = ms % 1000 ; if ( ms >= 1000 ) { ms = ( ms - t -> msecs ) / 1000 ; t -> secs = ms % 60 ; if ( ms >= 60 ) { ms = ( ms - t -> secs ) / 60 ; t -> mins = ms % 60 ; if ( ms >= 60 ) { ms = ( ms - t -> mins ) / 60 ; t -> hrs = ms ; } } } return ; }
@brief          Coverts ms to exactTime
  @param ms       number of milliseconds
  @param t        converted into this structure
@brief Coverts ms to exactTime @param ms number of milliseconds @param t converted into this structure