Method: LIBUSB::Call::Timeval#in_s=
- Defined in:
- lib/libusb/call.rb
#in_s=(value) ⇒ Object
set timeval to the number of seconds
606 607 608 |
# File 'lib/libusb/call.rb', line 606 def in_s=(value) self[:tv_sec], self[:tv_usec] = (value*1000000).divmod(1000000) end |