C++取得システム時間、および1970年1月1日から現在までのミリ秒数
#include <iostream>
#include <time.h>
#include <sys/timeb.h>
using namespace std;
int main()
{
long long time_last;
time_last = time(NULL);
cout<<time_last<<endl; //
struct timeb t1;
ftime(&t1);
cout<<t1.time<<endl; //
cout<<t1.millitm<<endl; //
system("pause");
return 0;
}