I think there are two questions here. (1) What programming languages have the capability for timing? (2) Which one should be used? As suggested in the answers above, most if not all programming languages have the capability for timing.
The answer to the second question I believe is more difficult. Even on the same machine, different programming languages (e.g. Matlab and C) will deliver different run times. Compiler choice is also an issue. Consequently, although I believe it unlikely, the choice of a programming language could affect which of your two algorithms is more efficient. Therefore, if you really want to do a thorough study, I would consider programming them in several languages and comparing them in each.
If you haven't already, you might want to read about the issues concerning benchmark computing. See https://en.wikipedia.org/wiki/Benchmark_(computing) for example.