bh_time.c 895 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include "bh_time.h"
  6. #include <unistd.h>
  7. #include <stdio.h>
  8. #include <time.h>
  9. /*
  10. * This function returns milliseconds per tick.
  11. * @return milliseconds per tick.
  12. */
  13. uint64 _bh_time_get_tick_millisecond()
  14. {
  15. //TODO:
  16. return 0;
  17. }
  18. /*
  19. * This function returns milliseconds after boot.
  20. * @return milliseconds after boot.
  21. */
  22. uint64 _bh_time_get_boot_millisecond()
  23. {
  24. //TODO
  25. return 0;
  26. }
  27. uint32 bh_get_tick_sec()
  28. {
  29. //TODO
  30. return 0;
  31. }
  32. /*
  33. * This function returns GMT time milliseconds since from 1970.1.1, AKA UNIX time.
  34. * @return milliseconds since from 1970.1.1.
  35. */
  36. uint64 _bh_time_get_millisecond_from_1970()
  37. {
  38. //TODO
  39. return 0;
  40. }
  41. size_t _bh_time_strftime(char *s, size_t max, const char *format, int64 time)
  42. {
  43. //TODO
  44. return 0;
  45. }