time.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2011 by Qualcomm Atheros.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software
  6. * for any purpose with or without fee is hereby granted, provided
  7. * that the above copyright notice and this permission notice appear
  8. * in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
  13. * THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  14. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  15. * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  16. * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  17. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  18. *
  19. *--------------------------------------------------------------------*/
  20. #ifndef TIME_HEADER
  21. #define TIME_HEADER
  22. /*====================================================================*
  23. *
  24. *--------------------------------------------------------------------*/
  25. #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
  26. # define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
  27. #else
  28. # define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
  29. #endif
  30. /*====================================================================*
  31. *
  32. *--------------------------------------------------------------------*/
  33. struct timezone
  34. {
  35. /* minutes W of Greenwich */
  36. int tz_minuteswest;
  37. /* type of dst correction */
  38. int tz_dsttime;
  39. };
  40. int gettimeofday (struct timeval *, struct timezone *);
  41. /*====================================================================*
  42. *
  43. *--------------------------------------------------------------------*/
  44. #endif