view release on metacpan or search on metacpan
data/tiddlers.json view on Meta::CPAN
"title": "DataValidation",
"modified": "20260621235356518",
"created": "20210907042849986"
},
{
"text": "\"\"\"\no See also:\n- [[cron]]\n- DataTypes - For MooseX::Types::DateTime\n- [[HTMLHandling]]\n- LinguaStuff\n- LocaleStuff\n- TheRFCGuide\n- http://datetime.perl.org/\n- https://dev.to/davorg/processing-dates-and-times-with-perl-31...
"title": "DatesAndTimes",
"modified": "20260617233007290",
"created": "20211116071525287"
},
{
data/tiddlers.json view on Meta::CPAN
"modified": "20260531034052695",
"created": "20230612012815961"
},
{
"created": "20231009225516915",
"text": "\"\"\"\no See also:\n- AiEngines\n- AlgorithmicStuff - For retry mechanisms\n- ArchiveFiles\n- ChildProcesses\n- DatabaseAndSQL - For Async::Redis, DBD::PgAsync etc\n- DataTraversal - For CSV handling\n- DatesAndTimes\n- DnsStuff\n- ...
"title": "EventStuff",
"modified": "20260702011820479"
},
{
"text": "\"\"\"\no See also:\n- DebuggingStuff - For Carp::Always\n- FeaturesAndPragmas\n- ModuleBuilding - For Aion\n- ParallelProcessing\n- PerlInternals\n- SwitchStatements\n- TestingHelp\n- WantArray\n- https://phoenixtrap.com/2021/12/07/...
data/tiddlers.json view on Meta::CPAN
"title": "LinguaStuff",
"modified": "20260630213646336",
"created": "20230702003755699"
},
{
"text": "\"\"\"\no See also:\n- ChildProcesses\n- DatesAndTimes\n- EventStuff\n- FileHandling - For Linux::FD\n- GnuPG\n- TheOSGuide\n- https://www.devuan.org/\n- https://xfce.org/\n\no App::RPM::Spec::License:\n- Base class for rpm-spec-lice...
"title": "LinuxOS",
"modified": "20260614001714387",
"created": "20260209051935710"
},
{
data/tiddlers.json view on Meta::CPAN
"title": "WantArray",
"modified": "20250524233506470",
"created": "20240323050536293"
},
{
"text": "\"\"\"\no See also:\n- TheRFCGuide - For rfc3339\n- https://astro.ecuadors.net/polar-scope-align/\n- https://astro.ecuadors.net/xasteria/\n- https://github.com/Yeqzids/7timer-issues/wiki/Wiki\n- https://open-meteo.com\n- https://open...
"title": "WeatherStuff",
"modified": "20260516232814391",
"created": "20251224043949791"
},
{
view all matches for this distribution
view release on metacpan or search on metacpan
t/var/nntp-testers/1433311 view on Meta::CPAN
# Failed test 'Command completed successfully'
# at t/04-fork.t line 18.
# got: '256'
# expected: '0'
# Failed test 'Parent managed to use the timer'
# at t/04-fork.t line 22.
# ''
# doesn't match '(?-xism:\(parent\))'
# Failed test 'Child managed to use the timer'
# at t/04-fork.t line 23.
# ''
# doesn't match '(?-xism:\(child\))'
'-' is not recognized as an internal or external command,
operable program or batch file.
view all matches for this distribution
view release on metacpan or search on metacpan
vhost/html/js/email_handler.js view on Meta::CPAN
var select_open = false;
var last_keypress = undefined;
var timer_id = undefined;
var timer_arg = undefined;
function populate_emails( event ) {
var str = '';
var evt = (event) ? event : ((window.event) ? window.event : null);
if (! evt) {
if (timer_arg != undefined) {
str = timer_arg;
} else {
return;
}
} else {
var elem = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
vhost/html/js/email_handler.js view on Meta::CPAN
) {
str = elem.value + String.fromCharCode( char );
}
}
if (timer_id != undefined) {
clearTimeout( timer_id );
timer_id = undefined;
timer_arg = undefined;
}
if (last_keypress == undefined) {
last_keypress = new Date();
} else {
// if the last keypress was less than half a second ago,
// wait to see if we get any more input
var now = new Date();
if (now.getTime() - last_keypress.getTime() < 500) {
timer_arg = str;
timer_id = setTimeout( "populate_emails()", 501 );
return;
}
}
var list = $("emaillist");
vhost/html/js/email_handler.js view on Meta::CPAN
var url = '';
if (str.length > 2) {
url = 'email_search.cgi?str=' + str;
}
if (url != '' && select_open == false) {
clearTimeout( timer_id );
last_keypress = undefined;
select_open = true;
new Ajax.Request( url, {
method: 'get',
onSuccess: add_emails_to_list
view all matches for this distribution
view release on metacpan or search on metacpan
t/data/cpanstats-test.json view on Meta::CPAN
{"test":{"count":{"entries":100,"reports":100,"posters":"182","distros":0},"pass":{"MacPPC":{"5.4.0":{"all":{"Net-Whois":1,"URI":1,"Storable":1,"Mac-Conversions":1,"Digest-MD5":1}}},"PA-RISC1.1":{"5.5.3":{"all":{"DBD-Oracle":1,"Curses":1}},"5.4.4":{"...
view all matches for this distribution
view release on metacpan or search on metacpan
inc/bundle/IPC/Cmd.pm view on Meta::CPAN
},
'terminate_on_signal' => 'HUP',
});
Combined with C<stdout_handler> and C<stderr_handler> allows terminating
external command based on its output. Could also be used as a timer
without engaging with L<alarm> (signals).
Remember that this code could be called every millisecond (depending
on the output which external command generates), so try to make it
as lightweight as possible.
view all matches for this distribution
view release on metacpan or search on metacpan
src/catch.hpp view on Meta::CPAN
double durationInSeconds;
};
} // end namespace Catch
// #included from: catch_timer.h
#define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED
#ifdef _MSC_VER
namespace Catch {
src/catch.hpp view on Meta::CPAN
SectionInfo m_info;
std::string m_name;
Counts m_assertions;
bool m_sectionIncluded;
Timer m_timer;
};
} // end namespace Catch
#ifdef CATCH_CONFIG_VARIADIC_MACROS
src/catch.hpp view on Meta::CPAN
try {
m_lastAssertionInfo = AssertionInfo( "TEST_CASE", testCaseInfo.lineInfo, "", ResultDisposition::Normal );
seedRng( *m_config );
Timer timer;
timer.start();
if( m_reporter->getPreferences().shouldRedirectStdOut ) {
StreamRedirect coutRedir( Catch::cout(), redirectedCout );
StdErrRedirect errRedir( redirectedCerr );
invokeActiveTestCase();
}
else {
invokeActiveTestCase();
}
duration = timer.getElapsedSeconds();
}
catch( TestFailureException& ) {
// This just means the test was aborted due to failure
}
catch(...) {
src/catch.hpp view on Meta::CPAN
}
void LegacyReporterAdapter::skipTest( TestCaseInfo const& ) {
}
}
// #included from: catch_timer.hpp
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-long-long"
#endif
src/catch.hpp view on Meta::CPAN
Section::Section( SectionInfo const& info )
: m_info( info ),
m_sectionIncluded( getResultCapture().sectionStarted( m_info, m_assertions ) )
{
m_timer.start();
}
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4996) // std::uncaught_exception is deprecated in C++17
#endif
Section::~Section() {
if( m_sectionIncluded ) {
SectionEndInfo endInfo( m_info, m_assertions, m_timer.getElapsedSeconds() );
if( std::uncaught_exception() )
getResultCapture().sectionEndedEarly( endInfo );
else
getResultCapture().sectionEnded( endInfo );
}
view all matches for this distribution
view release on metacpan or search on metacpan
src/catch.hpp view on Meta::CPAN
};
} // end namespace Catch
// end catch_section_info.h
// start catch_timer.h
#include <cstdint>
namespace Catch {
src/catch.hpp view on Meta::CPAN
auto getElapsedSeconds() const -> double;
};
} // namespace Catch
// end catch_timer.h
#include <string>
namespace Catch {
class Section : NonCopyable {
src/catch.hpp view on Meta::CPAN
SectionInfo m_info;
std::string m_name;
Counts m_assertions;
bool m_sectionIncluded;
Timer m_timer;
};
} // end namespace Catch
#define INTERNAL_CATCH_SECTION( ... ) \
src/catch.hpp view on Meta::CPAN
std::string m_name;
std::size_t m_count = 0;
std::size_t m_iterationsToRun = 1;
uint64_t m_resolution;
Timer m_timer;
static auto getResolution() -> uint64_t;
public:
// Keep most of this inline as it's on the code path that is being timed
BenchmarkLooper( StringRef name )
: m_name( name ),
m_resolution( getResolution() )
{
reportStart();
m_timer.start();
}
explicit operator bool() {
if( m_count < m_iterationsToRun )
return true;
src/catch.hpp view on Meta::CPAN
void BenchmarkLooper::reportStart() {
getResultCapture().benchmarkStarting( { m_name } );
}
auto BenchmarkLooper::needsMoreIterations() -> bool {
auto elapsed = m_timer.getElapsedNanoseconds();
// Exponentially increasing iterations until we're confident in our timer resolution
if( elapsed < m_resolution ) {
m_iterationsToRun *= 10;
return true;
}
src/catch.hpp view on Meta::CPAN
m_shouldReportUnexpected = true;
m_lastAssertionInfo = { "TEST_CASE"_sr, testCaseInfo.lineInfo, StringRef(), ResultDisposition::Normal };
seedRng(*m_config);
Timer timer;
CATCH_TRY {
if (m_reporter->getPreferences().shouldRedirectStdOut) {
#if !defined(CATCH_CONFIG_EXPERIMENTAL_REDIRECT)
RedirectedStdOut redirectedStdOut;
RedirectedStdErr redirectedStdErr;
timer.start();
invokeActiveTestCase();
redirectedCout += redirectedStdOut.str();
redirectedCerr += redirectedStdErr.str();
#else
OutputRedirect r(redirectedCout, redirectedCerr);
timer.start();
invokeActiveTestCase();
#endif
} else {
timer.start();
invokeActiveTestCase();
}
duration = timer.getElapsedSeconds();
} CATCH_CATCH_ANON (TestFailureException&) {
// This just means the test was aborted due to failure
} CATCH_CATCH_ALL {
// Under CATCH_CONFIG_FAST_COMPILE, unexpected exceptions under REQUIRE assertions
// are reported without translation at the point of origin.
src/catch.hpp view on Meta::CPAN
Section::Section( SectionInfo const& info )
: m_info( info ),
m_sectionIncluded( getResultCapture().sectionStarted( m_info, m_assertions ) )
{
m_timer.start();
}
Section::~Section() {
if( m_sectionIncluded ) {
SectionEndInfo endInfo{ m_info, m_assertions, m_timer.getElapsedSeconds() };
if( uncaught_exceptions() )
getResultCapture().sectionEndedEarly( endInfo );
else
getResultCapture().sectionEnded( endInfo );
}
src/catch.hpp view on Meta::CPAN
return TestSpecParser( ITagAliasRegistry::get() ).parse( arg ).testSpec();
}
} // namespace Catch
// end catch_test_spec_parser.cpp
// start catch_timer.cpp
#include <chrono>
static const uint64_t nanosecondsInSecond = 1000000000;
src/catch.hpp view on Meta::CPAN
auto Timer::getElapsedSeconds() const -> double {
return getElapsedMicroseconds()/1000000.0;
}
} // namespace Catch
// end catch_timer.cpp
// start catch_tostring.cpp
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wexit-time-destructors"
view all matches for this distribution