time.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. #ifndef TIME_HEADER
  9. #define TIME_HEADER
  10. /*====================================================================*
  11. *
  12. *--------------------------------------------------------------------*/
  13. #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
  14. # define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
  15. #else
  16. # define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
  17. #endif
  18. /*====================================================================*
  19. *
  20. *--------------------------------------------------------------------*/
  21. struct timezone
  22. {
  23. /* minutes W of Greenwich */
  24. int tz_minuteswest;
  25. /* type of dst correction */
  26. int tz_dsttime;
  27. };
  28. int gettimeofday (struct timeval *, struct timezone *);
  29. /*====================================================================*
  30. *
  31. *--------------------------------------------------------------------*/
  32. #endif