| MyGridProgram Class | 
[This is preliminary documentation and is subject to change.]
Namespace: Sandbox.ModAPI.Ingame
The MyGridProgram type exposes the following members.
| Name | Description | |
|---|---|---|
| MyGridProgram | Initializes a new instance of the MyGridProgram class | 
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) | 
| Name | Description | |
|---|---|---|
| Echo | 
                Prints out text onto the currently running programmable block's detail info area.
             | |
| ElapsedTime | Obsolete. 
                Gets the amount of in-game time elapsed from the previous run.
             | |
| GridTerminalSystem | 
                Provides access to the grid terminal system as viewed from this programmable block.
             | |
| Me | 
                Gets a reference to the currently running programmable block.
             | |
| Runtime | 
            Gets runtime information for the running grid program.
             | |
| Storage | 
                Allows you to store data between game sessions.
             | 
public void Main() { // Print out the time elapsed since the currently running programmable block was run // the last time. Echo(Me.CustomName + " was last run " + Runtime.TimeSinceLastRun.TotalSeconds + " seconds ago."); }