I have an application based on spring and flink. I have written a class which is a POJO with no connection to spring or flink. I want to generate average time metrics for it