---
title: "frameNumberWithTime:"
framework: iousbhost
role: symbol
role_heading: Instance Method
path: "iousbhost/iousbhostobject/framenumberwithtime:"
---

# frameNumberWithTime:

Returns the current frame number of the USB controller.

## Declaration

```occ
- (uint64_t) frameNumberWithTime:(IOUSBHostTime *) time;
```

## Parameters

- `time`: An doc://com.apple.iousbhost/documentation/IOUSBHost/IOUSBHostTime reference. If not nil, this updates with the current system time.

## Return Value

Return Value The current frame number.

## Discussion

Discussion This method returns the current frame number of the USB controller, omitting the microframe. This is useful for scheduling future isochronous requests with enqueueIORequest(with:frameList:frameListCount:firstFrameNumber:completionHandler:) and sendIORequest(with:frameList:frameListCount:firstFrameNumber:).

## See Also

### Getting Host Information

- [deviceAddress](iousbhost/iousbhostobject/deviceaddress.md)
