MooX-CalcTime

 view release on metacpan or  search on metacpan

lib/MooX/CalcTime.pm  view on Meta::CPAN

package MooX::CalcTime;
use Modern::Perl;
use Moo;

with 'MooX::CalcTime::Role';

our $VERSION = '0.0.8'; # VERSION
# ABSTRACT: This is a instantial object of MooX::CalcTime::Role


1;

__END__

=pod

=encoding UTF-8

=head1 NAME

MooX::CalcTime - This is a instantial object of MooX::CalcTime::Role

=head1 VERSION

version 0.0.8

=head1 SYNOPSIS

  use MooX::CalcTime;
  my $t = MooX::CalcTime;
  ......
  ......

  # return second passed, such as 30
  $t->get_run_second;

  # return a string such as 'Running time: 3 days 2 minutes 1 hours 10 minutes 5 second';
  $t->get_runtime;

  # print return value of C<get_runtime_format> function
  $t->print_runtime;

=head1 DESCRIPTION

This module is a instantial object of MooX::CalcTime::Role,
so that it can be used in a script.

If you want to see more detailed information,
please see L<MooX::CalcTime::Role>.

=head1 AUTHOR

Yan Xueqing <yanxueqing621@163.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Yan Xueqing.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut



( run in 1.189 second using v1.01-cache-2.11-cpan-99c4e6809bf )