]> asedeno.scripts.mit.edu Git - PuTTY.git/blob - unix/uxmisc.c
Begin destabilisation in the wake of 0.53! This checkin contains the
[PuTTY.git] / unix / uxmisc.c
1 /*
2  * PuTTY miscellaneous Unix stuff
3  */
4
5 #include <stdio.h>
6 #include <sys/time.h>
7
8 unsigned 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 }