/arch/um/os-Linux/time.c
https://bitbucket.org/evzijst/gittest · C · 21 lines · 8 code · 3 blank · 10 comment · 0 complexity · 721362568ddcf7c62afa5163519347e4 MD5 · raw file
- #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:
- */