Report question

Question: Can a program calculate the complexity of an algorithm?