I was reading a book about computational complexity theory and the author made a claim that the study of time complexity of algorithms started with a result on the upper bound on the number of operations needed by euclid's algorithm on two numbers by Gabriel Lamé in the early/mid 1800s. Since analyses of speed of convergence of algorithms can also be thought as sort of timeproto-time complexity analyses and date back at least to Lagrange I was wondering if they are even earlier than Lagrange.