Skip to content

Commit

Permalink
feat: adding UnscaledTime as log option
Browse files Browse the repository at this point in the history
Adding `Time.unscaledTime` as option for log time prefix
  • Loading branch information
James-Frowen authored Nov 22, 2024
1 parent 2822cc7 commit ab21fbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirage/Runtime/Logging/MirageLogHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ private string AddTimePrefix(string format)
timePrefix = "0";
}
break;
case TimePrefix.UnscaledTime:
timePrefix = Time.unscaledTime.ToString("0.000");
break;
case TimePrefix.DateTimeMilliSeconds:
timePrefix = DateTime.Now.ToString("HH:mm:ss.fff");
break;
Expand All @@ -86,6 +89,7 @@ public enum TimePrefix
{
None,
FrameCount,
UnscaledTime,
DateTimeMilliSeconds,
DateTimeSeconds,
}
Expand Down

0 comments on commit ab21fbb

Please sign in to comment.