Display time using $Display in System verilog/UVM

In reply to ayehia:

Can’t it be done with $display. i saw in my env it was printing the timeunit but not able to figure out how is it printing timeunit