Utopi
a

Chrono in C++

std::chrono seconds s{3}; cout << s.count() << "s\n";

#include<time.h> time_t now = time(NULL); double diff = difftime(a , now); char* string_now= ctime(&now); struct tm *gm_time = gmtime(&now);