xtime.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Declarations for the time functions.
  2. This file is part of khipu.
  3. khipu is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Lesser General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>. */
  13. #ifndef __KP_TIME__
  14. #define __KP_TIME__ 1
  15. #include "defs.hpp"
  16. KP_DECLS_BEGIN
  17. // Return the time in fractional seconds since this system's Epoch.
  18. KP_EXPORT double monotonic_time ();
  19. // Return the real time in fractional seconds for this system.
  20. KP_EXPORT double real_time ();
  21. KP_DECLS_END
  22. #endif