NAME

Timed::Logger::Entry - a log entry for Timed::Logger.

SYNOPSIS

Timed::Logger::Entry represents one log entry for Timed::Logger.

    use Timed::Logger;

    my $logger = Timed::Logger->new;

    #... log-log-log ...

    foreach my $entry ($logger->log->{default}) {
        printf("Operation %s took $.4f s", $entry->data->{description}, $entry->elapsed);
    }

See Timed::Logger for details.

ATTRIBUTES

bucket

Bucket this entry belongs to

started

Timestamp (floating point) this operation was started. See Time::HiRes.

finished

Timestamp (floating point) this operation was sinished. See Time::HiRes.

data

Application specific data for this event.

METHODS

elapsed

Returns amount of time this application took, floating point seconds.

AUTHOR

Nikolay Martynov, <kolya at cpan.org>

BUGS

Please report any bugs or feature requests to bug-timed-logger at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Timed-Logger. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Timed::Logger::Entry

You can also look for information at:

ACKNOWLEDGEMENTS

Logan Bell and Belden Lyman.

LICENSE AND COPYRIGHT

Copyright 2013 Nikolay Martynov and Shutterstock Inc (http://shutterstock.com). All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.