usec()
public
Returns just the number of microseconds for time.
t = Time.now
"%10.6f" % t.to_f
t.usec
Show source
/*
* call-seq:
* time.usec => int
* time.tv_usec => int
*
* Returns just the number of microseconds for <i>time</i>.
*
* t = Time.now
* "%10.6f" % t.to_f
* t.usec
*/
static VALUE
time_usec(time)
VALUE time;
{
struct time_object *tobj;
GetTimeval(time, tobj);
return LONG2NUM(tobj->tv.tv_usec);
}