swh:1:snp:173f8deb0c56c557784b4fd217e7608ac6197844
Raw File
Tip revision: 3bedff1d73b86e0cf52634efb447e9ada08f2cc6 authored by Linus Torvalds on 20 November 2005, 03:25:03 UTC
Linux v2.6.15-rc2
Tip revision: 3bedff1
time.c
#include <stdlib.h>
#include <sys/time.h>

unsigned long long os_usecs(void)
{
	struct timeval tv;

	gettimeofday(&tv, NULL);
	return((unsigned long long) tv.tv_sec * 1000000 + tv.tv_usec);
}

/*
 * Overrides for Emacs so that we follow Linus's tabbing style.
 * Emacs will notice this stuff at the end of the file and automatically
 * adjust the settings for this buffer only.  This must remain at the end
 * of the file.
 * ---------------------------------------------------------------------------
 * Local variables:
 * c-file-style: "linux"
 * End:
 */
back to top