Fix the gcc warnings in this module (since we now seem to be
[u/mdw/putty] / unix / uxmisc.c
CommitLineData
f7f27309 1/*
2 * PuTTY miscellaneous Unix stuff
3 */
4
5#include <stdio.h>
6#include <sys/time.h>
7
8unsigned long getticks(void)
9{
10 struct timeval tv;
11 gettimeofday(&tv, NULL);
12 /*
13 * This will wrap around approximately every 4000 seconds, i.e.
14 * just over an hour, which is more than enough.
15 */
16 return tv.tv_sec * 1000000 + tv.tv_usec;
17}