void rozofs_fuse_get_ticker() { struct timeval timeDay; gettimeofday(&timeDay,(struct timezone *)0); rozofs_fuse_req_tic = MICROLONG(timeDay); }
/** * Read data from a file @param thread_ctx_p: pointer to the thread context @param msg : address of the message received @retval: none */ static inline void rozofs_fuse_th_fuse_reply_buf(rozofs_fuse_thread_ctx_t *thread_ctx_p,rozofs_fuse_thread_msg_t * msg) { struct timeval timeDay; unsigned long long timeBefore, timeAfter; char *buf_sharem = (char *)msg->payload; gettimeofday(&timeDay,(struct timezone *)0); timeBefore = MICROLONG(timeDay); /* ** update statistics */ thread_ctx_p->stat.write_count++; thread_ctx_p->stat.write_Byte_count+=msg->size; fuse_reply_buf(msg->req, (char *) buf_sharem, msg->size); rozofs_fuse_th_send_response(thread_ctx_p,msg,0); /* ** Update statistics */ gettimeofday(&timeDay,(struct timezone *)0); timeAfter = MICROLONG(timeDay); thread_ctx_p->stat.write_time +=(timeAfter-timeBefore); }