# Sandbox.RealTimeSince

A convenience struct to easily measure time since an event last happened, based on [Sandbox.RealTime.GlobalNow](/api/Sandbox.RealTime/GlobalNow).


Typical usage would see you assigning 0 to a variable of this type to reset the timer.
Then the struct would return time since the last reset. i.e.:

```csharp
RealTimeSince lastUsed = 0;
if ( lastUsed > 10 ) { /*Do something*/ }
```

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Properties

- [`Absolute`](/api/Sandbox.RealTimeSince/Absolute): Time at which the timer reset happened, based on [Sandbox.RealTime.GlobalNow](/api/Sandbox.RealTime/GlobalNow).
- [`Relative`](/api/Sandbox.RealTimeSince/Relative): Time passed since last reset, in seconds.
