Contents

hv_vcpu_get_exec_time(_:_:)

Returns, by reference, the cumulative execution time of a vCPU, in nanoseconds.

Declaration

func hv_vcpu_get_exec_time(_ vcpu: hv_vcpu_t, _ time: UnsafeMutablePointer<UInt64>) -> hv_return_t

Parameters

  • vcpu:

    The instance of the vCPU.

  • time:

    The execution time on output, in nanoseconds.

Return Value

HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

Discussion

See Also

Runtime