mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
LazLogger: add dbgsTime (tickcount)
git-svn-id: trunk@64018 -
This commit is contained in:
parent
b5afc22435
commit
541228d5ac
@ -509,6 +509,16 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function DbgSTime(): string;
|
||||
begin
|
||||
{$IFnDEF USED_BY_LAZLOGGER_DUMMY}
|
||||
Result:= IntToStr(GetTickCount64);
|
||||
Insert(':', Result, Length(Result)-2);
|
||||
{$ELSE}
|
||||
Result := '';
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function DbgS(const i1, i2, i3, i4: integer): string;
|
||||
begin
|
||||
{$IFnDEF USED_BY_LAZLOGGER_DUMMY}
|
||||
|
@ -110,6 +110,8 @@ function DbgSName(const p: TClass): string; overload;
|
||||
function dbgObjMem(AnObject: TObject): string; overload;
|
||||
function dbghex(i: Int64): string; overload;
|
||||
|
||||
function DbgSTime(): string;
|
||||
|
||||
function dbgMemRange(P: Pointer; Count: integer; Width: integer = 0): string; overload;
|
||||
function dbgMemStream(MemStream: TCustomMemoryStream; Count: integer): string; overload;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user