How to push data in queue with $realtime


seq_item_q qu[$];

function write_scb(seq_item obj);
env_ptr.scb[agt_num].qu.push_back(obj);
// env_ptr represent env[i]
// based on agt_num pushing to queue and 
// retrieving from the queue based on the agt_num 
endfunction


I wanna push the $realtime to the queue and retrieve the same so I can check for actual vs expected time or some operations w/ time period

In reply to m_r_m:

You should add a variable to your sequence_item so that you can timestamp them as required.