new utility class to measure time