how to calculate the duration of time?

U can get the current system time when project is starting and ending and find difrence between these two time so that u can find the execution time of your program