Pass sensor timestamp to application through gstreamer

I am using gstreamer to capture frames rhrough appsink, How to pass this timestamp to gstreamer

// Example sensor timestamp in monotonic time (for testing)
uint64_t sensorTimestamp = static_cast(iMetadata->getSensorTimestamp()); // Example sensor timestamp (monotonic)

// Convert sensor timestamp to real-time
uint64_t realTime = convertToRealTime(sensorTimestamp, monotonicRawStart, realTimeStartSec, realTimeStartNsec);

Current don’t have this feature.
You can download the nvarguscamerasrc source code to implement it by yourself.