# boulderopalscaleup.common.Duration.to_ns

Source: https://docs.q-ctrl.com/references/boulder-opal-scale-up/boulderopalscaleup/common/to_ns

```python
Duration.to_ns()
```

Return the duration converted to nanoseconds.

### Raises
**TypeError** – If the value cannot be exactly represented in nanoseconds.
