Lines Matching defs:Value
6 package Time::HiRes::Value;
24 C<Time::HiRes::Value> - a class representing a time value or interval in exact
85 =head2 $time = Time::HiRes::Value->new( $sec, $usec )
87 This function returns a new instance of a C<Time::HiRes::Value> object. This
91 If the C<I<$usec>> value is provided then the new C<Time::HiRes::Value> object
96 Time::HiRes::Value->new( -2, 500000 );
137 =head2 $time = Time::HiRes::Value->now()
139 This function returns a new instance of C<Time::HiRes::Value> containing the
209 This method returns a new C<Time::HiRes::Value> value, containing the sum of the
226 return Time::HiRes::Value->new( $self->[0] + $other->[0], $self->[1] + $other->[1] );
237 This method returns a new C<Time::HiRes::Value> value, containing the difference
256 return Time::HiRes::Value->new( $self->[0] - $other->[0], $self->[1] - $other->[1] );
265 This method returns a new C<Time::HiRes::Value> value, containing the product
266 of the passed values. C<$other> must not itself be a C<Time::HiRes::Value>
280 return Time::HiRes::Value->new( $self->[0] * $other, $self->[1] * $other );
287 This method returns a new C<Time::HiRes::Value> value, containing the quotient
288 of the passed values. C<$other> must not itself be a C<Time::HiRes::Value>
306 return Time::HiRes::Value->new( $self->[0] / $other, $self->[1] / $other );