# SIM_STAT_SCRIPT_MS

*LSL constant*

```lsl
integer SIM_STAT_SCRIPT_MS = 9;
```

Returns the time spent in the 'script' segment of the simulation frame.

Constant groups: [SimulatorStat](/constants/groups/SimulatorStat/)

## See also

### Functions

- [llGetSimStats](/functions/llGetSimStats/)

---

*Source: [SIM STAT SCRIPT MS](https://wiki.secondlife.com/wiki/SIM_STAT_SCRIPT_MS) on the Second Life Wiki. Content from the Second Life Wiki article SIM STAT SCRIPT MS (revision 1213062, 2023-01-30), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/SIM_STAT_SCRIPT_MS/
