⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msglinux.pas

📁 Delphi MsgCommunicator 2-10 component.I ve used, really good job. can be Server-Client message appl
💻 PAS
字号:
unit MsgLinux;

interface

uses
{$IFNDEF D6H}
  Windows
{$ELSE}
{$IFDEF MSWINDOWS}
  Windows
{$ENDIF}
{$IFDEF LINUX}
  Libc
{$ENDIF}
{$ENDIF}
  ;

function GetTickCount: Cardinal;

implementation

//------------------------------------------------------------------------------
// GetTickCount
//------------------------------------------------------------------------------
{$IFDEF D6H}
{$IFDEF LINUX}
function GetTickCount: Cardinal;
var
  tv: timeval;
begin
  gettimeofday(tv, nil);
  {$RANGECHECKS OFF}
  Result := int64(tv.tv_sec) * 1000 + tv.tv_usec div 1000;
end; // GetTickCount
{$ENDIF}

{$IFDEF MSWINDOWS}
function GetTickCount: Cardinal;
begin
  Result := Windows.GetTickCount;
end; // GetTickCount
{$ENDIF}
{$ENDIF}

{$IFNDEF D6H}
function GetTickCount: Cardinal;
begin
  Result := Windows.GetTickCount;
end; // GetTickCount
{$ENDIF}

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -