[BEAM-1648] Add processing time to metadata
(cherry picked from commit 61c8b35)