计算一段程序的时间复杂度
我想请问怎样计算一段程序的时间复杂度,例如
void func(intx,inty,intz){
if(x<=0)
printf("%d, %d\n", y, z);
else{
func(x-1,y+1,z);
func(x-1,y,z+1);
}
}