Response time in header

I would like to set/configure nginx such that I either a) set a single
header equal to the time it takes nginx to receive and reply to a
request, or b) set a hader for the time the request is received and
another when the reponse is sent out from the webserver.

Can this be done?