Added time measurement functionality

The time for computation looks rather small.
Need to validate the correctness of the Lagrange function