Implement ability to define period for counter or gauge measurement