Code:
// GetTime.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <time.h>
#include <Windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
time_t curtime;
printf("Unix Time Counter, Press End To Quit \n");
while(!GetAsyncKeyState(VK_END)&1)
{
time(&curtime);
printf("Unix Time: %i \n",curtime);
Sleep(1000);
}
return 0;
}
<!-- m --><a class="postlink" href="http://0v1.org/GetTime.exe">http://0v1.org/GetTime.exe</a><!-- m -->