Method: LIBUSB::Call::Timeval#in_s

Defined in:
lib/libusb/call.rb

#in_sFloat

get the number of seconds in timeval

Returns:

  • (Float)


612
613
614
# File 'lib/libusb/call.rb', line 612

def in_s
  self[:tv_sec] + self[:tv_usec]/1000000.0
end