remove rb_time_interval() and gettimeofday() dependency
commit31dee76d5ef41ec5524c3e4dfb802db4a7a468ef
authorEric Wong <normalperson@yhbt.net>
Sat, 25 Dec 2010 02:11:04 +0000 (24 18:11 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 25 Dec 2010 02:12:03 +0000 (24 18:12 -0800)
tree118425e0b84920c716e85366678d8cefef846781
parent748d4aa2d3ece18db7d48c355ce77c877e4d3bb9
remove rb_time_interval() and gettimeofday() dependency

This function isn't exported in the standard Ruby headers,
it returns an aggregate value and isn't available in Rubinius,
either, so nuke it.

While we're at it, use clock_gettime() instead of gettimeofday()
to avoid unnecessary timeval usage since mq_send/mq_receive
rely on higher-precision timespecs instead.
ext/posix_mq/extconf.rb
ext/posix_mq/posix_mq.c
test/test_posix_mq.rb