libcef.time.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // This file manually written from cef/include/internal/cef_time.h.
  3. //
  4. // See also:
  5. // /Interop/Structs/cef_time_t.cs
  6. //
  7. namespace Xilium.CefGlue.Interop
  8. {
  9. using System;
  10. using System.Runtime.InteropServices;
  11. using System.Security;
  12. internal static unsafe partial class libcef
  13. {
  14. /*
  15. ///
  16. // Converts cef_time_t to/from time_t. Returns true (1) on success and false (0)
  17. // on failure.
  18. ///
  19. CEF_EXPORT int cef_time_to_timet(const cef_time_t* cef_time, time_t* time);
  20. CEF_EXPORT int cef_time_from_timet(time_t time, cef_time_t* cef_time);
  21. ///
  22. // Converts cef_time_t to/from a double which is the number of seconds since
  23. // epoch (Jan 1, 1970). Webkit uses this format to represent time. A value of 0
  24. // means "not initialized". Returns true (1) on success and false (0) on
  25. // failure.
  26. ///
  27. CEF_EXPORT int cef_time_to_doublet(const cef_time_t* cef_time, double* time);
  28. CEF_EXPORT int cef_time_from_doublet(double time, cef_time_t* cef_time);
  29. ///
  30. // Retrieve the current system time.
  31. //
  32. CEF_EXPORT int cef_time_now(cef_time_t* cef_time);
  33. ///
  34. // Retrieve the delta in milliseconds between two time values.
  35. //
  36. CEF_EXPORT int cef_time_delta(const cef_time_t* cef_time1,
  37. const cef_time_t* cef_time2,
  38. long long* delta);
  39. */
  40. }
  41. }