add time measure for each rest call