Class TCustomSystemCore
Unit
PXL.Boards.Types
Declaration
type TCustomSystemCore = class abstract(TObject)
Description
System core of the board, which provides high-performance utility functions for accurate timing and delays.
Hierarchy
- TObject
- TCustomSystemCore
Overview
Methods
Description
Methods
|
function GetTickCount: TMicroseconds; virtual; abstract; |
Returns the current value of system timer, in microseconds.
|
|
function TicksInBetween(const InitTicks, EndTicks: TMicroseconds): TMicroseconds; |
Calculates the difference between two system timer values with proper handling of overflows.
|
|
procedure BusyWait(const Microseconds: TMicroseconds); |
Waits the specified amount of microseconds accurately by continuously polling the timer. This is useful for accurate timing but may result in high CPU usage.
|
|
procedure Delay(const Milliseconds: TMilliseconds); virtual; |
Delays the execution for the specified amount of milliseconds. CPU is put to sleep when milliseconds > 10
|
|
procedure MicroDelay(const Microseconds: TMicroseconds); virtual; |
Delays the execution for the specified amount of microseconds.
|
Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.
|