C++:
clock_t start = clock();
***
clock_t end = clock();
printf("%d\n", end - start);
C++(11):
auto start = std::chrono::steady_clock::now();
***
auto end = std::chrono::steady_clock::now();
cout << std::chrono::duration_cast<std::chrono::milliseconds>(total_end - total_start).count() << endl;
JAVA:
System.out.println(new Date(System.currentTimeMillis()));
Python:
import time
start = time.time()
***
end = time.time()
print (int(round(end - start) * 1000)))