# getTickCount (Shared)

> Returns how many milliseconds have passed since scripts started running on this side.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Data and utilities
- **URL**: https://wiki.mymp.gg/en/getTickCount

## Syntax

```lua
int getTickCount()
```

## Returns

The milliseconds.

## Example

```lua
local started = getTickCount()
-- ... work ...
print("took " .. (getTickCount() - started) .. " ms")
```

## See also

- [getRealTime (Shared)](https://wiki.mymp.gg/en/getRealTime.md): Returns the computer's real date and time, in the local time zone.
- [setTimer (Shared)](https://wiki.mymp.gg/en/setTimer.md): Calls a function after an interval, once or repeatedly.
