Skip to content

Commit 4789386

Browse files
committed
Added time command.
1 parent 4f92185 commit 4789386

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Runtime/DevConsoleMono.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ private void InitBuiltInCommands()
881881
AddCommand(Command.Create<int>(
882882
"fps_target",
883883
"fps_max",
884-
"Query or set the target framerate.",
884+
"Query or set the target frame rate.",
885885
Parameter.Create("targetFrameRate", "Frame rate the application will try to render at."),
886886
i =>
887887
{
@@ -1176,6 +1176,17 @@ void logChildren(GameObject obj, int tabAmount)
11761176
));
11771177

11781178
#endregion
1179+
1180+
#region Misc commands
1181+
1182+
AddCommand(Command.Create(
1183+
"time",
1184+
"",
1185+
"Display the current time",
1186+
() => Log($"Current time: {DateTime.Now}.")
1187+
));
1188+
1189+
#endregion
11791190
}
11801191

11811192
private void InitAttributeCommands()

0 commit comments

Comments
 (0)