Put latency between source and streammuxer layers

Hi I wanted to debug the pipline for small clip. can we put latency between source and streamux based on my choice?.

Could you share your setup with us?
For lantency, I think you can calculate the timestamp from source to muxer.