EDM time took
This commit is contained in:
parent
947abbe92a
commit
cef220f8d1
|
|
@ -27,6 +27,7 @@ int edm_encap(uint8_t* msg, uint16_t* msg_len, uint16_t msg_buf_len, int its_msg
|
|||
return 1;
|
||||
}
|
||||
|
||||
uint64_t t_init = itss_ts_get(TIME_MICROSECONDS);
|
||||
pthread_mutex_lock(&edm->lock); // TODO do not use single apps socket
|
||||
itss_0send(edm->app_socket, b1, enc.encoded+1);
|
||||
int rl = itss_0recv_rt(&edm->app_socket, b2, b_len, b1, enc.encoded+1, 400);
|
||||
|
|
@ -58,6 +59,8 @@ int edm_encap(uint8_t* msg, uint16_t* msg_len, uint16_t msg_buf_len, int its_msg
|
|||
*msg_len = fr->choice.extension.extendedMsg.size;
|
||||
memcpy(msg, fr->choice.extension.extendedMsg.buf, fr->choice.extension.extendedMsg.size);
|
||||
|
||||
log_debug("[edm] request took %ld us", itss_ts_get(TIME_MICROSECONDS) - t_init);
|
||||
|
||||
cleanup:
|
||||
ASN_STRUCT_FREE(asn_DEF_FacilitiesIndication, fi);
|
||||
ASN_STRUCT_FREE(asn_DEF_FacilitiesResponse, fr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue