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


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
TimeSince lastUsed = 0;
if ( lastUsed > 10 ) { /*Do something*/ }
```

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`Absolute`](/api/Sandbox.TimeSince/Absolute): Time at which the timer reset happened, based on [Sandbox.Time.Now](/api/Sandbox.Time/Now).
- [`Relative`](/api/Sandbox.TimeSince/Relative): Time passed since last reset, in seconds.
