It doesn't care about such things as your operating system, programming language, hardware. It's merely to suggest that if you double the data size, does the time taken also double (O(n)), or quadruple (O(n*n)).
You can't compute the complexity of a program by inspecting the source code with another program.
i am working a project and i need help.... i need to create a program that can read c++ and java code to compute their time complexity..... i have been suggested to use java as a PL... my problem is i don't know how to get started, i'm thinking of computing the complexity by batch in the codes. what do you think?
It is impossible to make a program that can compute the time complexity of any program. But you _could_ compute the time complexity for some trivial algorithms. You need to tell us on what subset of the set of programs you want to support computing time complexity.