Measuring star formation with resolved observations: the test case of M 33