For the study of how much time and/or memory a computer algorithm can take, see Computational complexity theory.
To link later:
... with ...