• Use [hide] Content [/hide] to prevent leeching of your content.

Unix Time Counter

Jimster480

Administrator
Staff member
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;
}
I coded this for a troll on a friends status. Enjoy!
<!-- m --><a class="postlink" href="http://0v1.org/GetTime.exe">http://0v1.org/GetTime.exe</a><!-- m -->
 
Top Bottom