123456789101112131415161718192021222324252627282930313233343536 |
- {
- This file is part of the Free Component Library
- Webassembly Timer API - shared info with pas2js hosting implementation.
- Copyright (c) 2024 by Michael Van Canneyt [email protected]
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- unit wasm.timer.shared;
- {$mode ObjFPC}{$H+}
- interface
- Type
- TWasmTimerID = Longint;
- const
- ETIMER_SUCCESS = 0;
- ETIMER_NOPERFORMANCE = -1;
- TimerExportName = 'timer';
- TimerFN_Allocate = 'allocate_timer';
- TimerFN_DeAllocate = 'deallocate_timer';
- TimerFN_Performance_Now = 'timer_performance_now';
- implementation
- end.
|