wasm.timer.shared.pas 907 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. This file is part of the Free Component Library
  3. Webassembly Timer API - shared info with pas2js hosting implementation.
  4. Copyright (c) 2024 by Michael Van Canneyt [email protected]
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  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.
  10. **********************************************************************}
  11. unit wasm.timer.shared;
  12. {$mode ObjFPC}{$H+}
  13. interface
  14. Type
  15. TWasmTimerID = Longint;
  16. const
  17. ETIMER_SUCCESS = 0;
  18. ETIMER_NOPERFORMANCE = -1;
  19. TimerExportName = 'timer';
  20. TimerFN_Allocate = 'allocate_timer';
  21. TimerFN_DeAllocate = 'deallocate_timer';
  22. TimerFN_Performance_Now = 'timer_performance_now';
  23. implementation
  24. end.