LazLogger: add dbgsTime (tickcount)

git-svn-id: trunk@64018 -
This commit is contained in:
martin 2020-10-15 18:37:39 +00:00
parent b5afc22435
commit 541228d5ac
2 changed files with 12 additions and 0 deletions

View File

@ -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}

View File

@ -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;