Measure also function creation time.