Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyGridProgramRuntimeInfo

Morten Aune Lyrstad edited this page Jun 28, 2020 · 38 revisions

IndexNamespace Index

IMyGridProgramRuntimeInfo Interface

public interface IMyGridProgramRuntimeInfo

Provides runtime info for a running grid program.

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Properties

Member Description
TimeSinceLastRun { get; } Gets the time elapsed since the last time the Main method of this program was run. This property returns no valid data neither in the constructor nor the Save method.
LastRunTimeMs { get; } Gets the number of milliseconds it took to execute the Main method the last time it was run. This property returns no valid data neither in the constructor nor the Save method.
MaxInstructionCount { get; } Gets the maximum number of significant instructions that can be executing during a single run, including any other programmable blocks invoked immediately.
CurrentInstructionCount { get; } Gets the current number of significant instructions executed.
MaxCallChainDepth { get; } Gets the maximum number of method calls that can be nested into each other.
CurrentCallChainDepth { get; } Gets the current number of nested method calls.
UpdateFrequency { get; set; } Gets or sets how frequently this script will run itself
Clone this wiki locally