view release on metacpan or search on metacpan
public/vendor/pagedown/Markdown.Editor.js view on Meta::CPAN
var undoObj = this;
var undoStack = []; // A stack of undo states
var stackPtr = 0; // The index of the current state
var mode = "none";
var lastState; // The last state
var timer; // The setTimeout handle for cancelling the timer
var inputStateObj;
// Set the mode for later logic steps.
var setMode = function (newMode, noSave) {
if (mode != newMode) {
public/vendor/pagedown/Markdown.Editor.js view on Meta::CPAN
saveState();
}
}
if (!uaSniffed.isIE || mode != "moving") {
timer = setTimeout(refreshState, 1);
}
else {
inputStateObj = null;
}
};
var refreshState = function (isInitialState) {
inputStateObj = new TextareaState(panels, isInitialState);
timer = undefined;
};
this.setCommandMode = function () {
mode = "command";
saveState();
timer = setTimeout(refreshState, 0);
};
this.canUndo = function () {
return stackPtr > 1;
};
public/vendor/pagedown/Markdown.Editor.js view on Meta::CPAN
}
});
var handlePaste = function () {
if (uaSniffed.isIE || (inputStateObj && inputStateObj.text != panels.input.value)) {
if (timer == undefined) {
mode = "paste";
saveState();
refreshState();
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Algorithm/Backoff/RetryTimeouts.pm view on Meta::CPAN
#pod
#pod =head2 Typical scenario
#pod
#pod Here's an example scenario of the algorithm with existing defaults:
#pod
#pod $retry_algo is created, and timer starts
#pod
#pod Initial timeout is 25s
#pod
#pod 1st attempt fails instantly
#pod
lib/Algorithm/Backoff/RetryTimeouts.pm view on Meta::CPAN
=head2 Typical scenario
Here's an example scenario of the algorithm with existing defaults:
$retry_algo is created, and timer starts
Initial timeout is 25s
1st attempt fails instantly
view all matches for this distribution
view release on metacpan or search on metacpan
# DESCRIPTION
`Algorithm::RateLimiter::TokenBucket` implements the [token bucket](https://en.wikipedia.org/wiki/Token_bucket)
algorithm for rate limiting. It is specifically designed to be **loop-agnostic**, meaning it does not manage its own
timers or background threads. Instead, you "drive" it by calling `tick( )` with the amount of time that has passed.
This makes it ideal for integration into event loops (like [IO::Async](https://metacpan.org/pod/IO%3A%3AAsync) or [Mojo::IOLoop](https://metacpan.org/pod/Mojo%3A%3AIOLoop)) or high-performance network
applications.
# METHODS
view all matches for this distribution
view release on metacpan or search on metacpan
examples/corpus/SlideShowApplet.java view on Meta::CPAN
import java.net.*; //for URL needed for image loading
public class SlideShowApplet extends JApplet { //(B)
int frameIndex = 0; //current frame number
String dir; //directory relative to the codebase
Timer timer; //timer for sequencing through images
int pause; //time interval between images
int numImages; //number of images to display
int width; //width of the applet
int height; //height of the applet
int displayWidth;
examples/corpus/SlideShowApplet.java view on Meta::CPAN
statusLabel = new JLabel("Loading Images...", JLabel.CENTER);
statusLabel.setForeground( Color.red );
contentPane.add(statusLabel);
timer = new Timer( pause, new ActionListener() { //(G)
public void actionPerformed( ActionEvent evt ) {
frameIndex++; //(H)
if ( frameIndex == numImages )
frameIndex = 1;
newFrameAvailable = true;
contentPane.repaint();
}
});
timer.setInitialDelay( 0 );
timer.setCoalesce(false);
images = new ImageIcon[numImages]; //(I)
new Thread() { //(J)
public void run() {
loadImages();
examples/corpus/SlideShowApplet.java view on Meta::CPAN
}.start();
}
public void start() { //(K)
if ( finishedLoading )
timer.restart();
}
public void loadImages() { //(L)
String prefix = dir + "/flower";
for ( int i = 0; i < numImages; i++ ) {
examples/corpus/SlideShowApplet.java view on Meta::CPAN
"Couldn't create image: badly formed URL" );
}
}
finishedLoading = true;
statusLabel.setText( null );
timer.start();
}
public void stop() { //(N)
timer.stop();
}
public String getAppletInfo() { //(O)
return "Title: A SlideShow Applet\n";
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alice.pm view on Meta::CPAN
$self->shutdown;
$cb->() if $cb;
};
$w = AE::idle sub {$shutdown->() unless $self->connected_ircs};
$t = AE::timer 3, 0, $shutdown;
}
sub shutdown {
my $self = shift;
lib/Alice.pm view on Meta::CPAN
for my $irc ($self->ircs) {
my $name = $irc->name;
unless (exists $self->config->servers->{$name}) {
$self->send_info("config", "removing $name server");
if ($irc->is_disconnected) {
$self->cancel_reconnect($name) if $irc->reconnect_timer;
$irc->cl(undef);
$self->remove_irc($name);
}
else {
$irc->removed(1);
view all matches for this distribution
view release on metacpan or search on metacpan
corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list view on Meta::CPAN
x64-windows/debug/html/man3/DSAparams_print_fp.html
x64-windows/debug/html/man3/DTLS_client_method.html
x64-windows/debug/html/man3/DTLS_get_data_mtu.html
x64-windows/debug/html/man3/DTLS_method.html
x64-windows/debug/html/man3/DTLS_server_method.html
x64-windows/debug/html/man3/DTLS_set_timer_cb.html
x64-windows/debug/html/man3/DTLS_timer_cb.html
x64-windows/debug/html/man3/DTLSv1_2_client_method.html
x64-windows/debug/html/man3/DTLSv1_2_method.html
x64-windows/debug/html/man3/DTLSv1_2_server_method.html
x64-windows/debug/html/man3/DTLSv1_client_method.html
x64-windows/debug/html/man3/DTLSv1_listen.html
corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list view on Meta::CPAN
x64-windows/html/man3/DSAparams_print_fp.html
x64-windows/html/man3/DTLS_client_method.html
x64-windows/html/man3/DTLS_get_data_mtu.html
x64-windows/html/man3/DTLS_method.html
x64-windows/html/man3/DTLS_server_method.html
x64-windows/html/man3/DTLS_set_timer_cb.html
x64-windows/html/man3/DTLS_timer_cb.html
x64-windows/html/man3/DTLSv1_2_client_method.html
x64-windows/html/man3/DTLSv1_2_method.html
x64-windows/html/man3/DTLSv1_2_server_method.html
x64-windows/html/man3/DTLSv1_client_method.html
x64-windows/html/man3/DTLSv1_listen.html
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/CSFML.pm view on Meta::CPAN
=item C<graphics> - hardware acceleration of 2D graphics including sprites, polygons and text rendering
=item C<network> - TCP and UDP network sockets, data encapsulation facilities, HTTP and FTP classes
=item C<system> - vector and Unicode string classes, portable threading and timer facilities
=item C<window> - window and input device management including support for joysticks, OpenGL context management
=back
view all matches for this distribution
view release on metacpan or search on metacpan
src/Source/LibJXR/image/decode/strdec.c view on Meta::CPAN
//================================================
pSC = (CWMImageStrCodec*)pb; pb += sizeof(*pSC);
if(pSC == NULL)
return ICERR_ERROR;
// Set up perf timers
PERFTIMER_ONLY(pSC->m_fMeasurePerf = pSCP->fMeasurePerf);
PERFTIMER_NEW(pSC->m_fMeasurePerf, &pSC->m_ptEndToEndPerf);
PERFTIMER_NEW(pSC->m_fMeasurePerf, &pSC->m_ptEncDecPerf);
PERFTIMER_START(pSC->m_fMeasurePerf, pSC->m_ptEndToEndPerf);
PERFTIMER_START(pSC->m_fMeasurePerf, pSC->m_ptEncDecPerf);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/GvaScript/lib/GvaScript.js view on Meta::CPAN
// - clear match result
_clear_quick_navi: function() {
if(this._quick_navi_mode !== false)
window.clearTimeout(this._quick_navi_mode);
this._quick_navi_mode = false; // quick_navi mode active (navi timer)
this._quick_navi_word = ""; // word to navigate to
this.labels_array = null; // tree labels array
},
_assertNode: function(elem, msg) {
lib/Alien/GvaScript/lib/GvaScript.js view on Meta::CPAN
Event.stop(event);
this._quick_navi_word += event.keyName; // always uppercase
var is_quick_navi_mode = (this._quick_navi_mode !== false);
// drop the previous timer
if(is_quick_navi_mode) {
window.clearTimeout(this._quick_navi_mode);
}
// initialize labels_array on start of quick-search
// (mandate of dynamic trees)
else {
this.labels_array = this.rootElement.select('.'+this.classes.label);
}
// activate a new timer
this._quick_navi_mode = window.setTimeout(function() {
this._clear_quick_navi();
}.bind(this), 800);
var selectedLabel = this.label(selectedNode);
view all matches for this distribution
view release on metacpan or search on metacpan
patches/Makefile_im.mingw view on Meta::CPAN
CF_im_fftw = -c -Wall -O2 -Ifftw -I../include -DFFTW_ENABLE_FLOAT $(CF_im_fftw_EXTRA)
LF_im_fftw = -lim_process -lim -lzlib1 -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -luuid -loleaut32 -lole32 -lcomctl32 $(LF_im_fftw_EXTRA)
SLIB_im_fftw = ../lib/$(BUILDNICK)/libim_fftw.a
DLIB_im_fftw = ../lib/$(BUILDNICK)/libim_fftw.dll.a
ILIB_im_fftw = ../lib/$(BUILDNICK)/im_fftw_alien_.dll
OBJS_im_fftw = ../obj/$(BUILDNICK)/im_fftw/im_fft.o ../obj/$(BUILDNICK)/im_fftw/config.o ../obj/$(BUILDNICK)/im_fftw/executor.o ../obj/$(BUILDNICK)/im_fftw/fftwnd.o ../obj/$(BUILDNICK)/im_fftw/fn_1.o ../obj/$(BUILDNICK)/im_fftw/fn_10.o ../obj/$(BUILD...
../obj/$(BUILDNICK)/im_fftw/im_fft.o : ./process/im_fft.cpp ; g++ $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/config.o : ./fftw/config.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/executor.o : ./fftw/executor.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/fftwnd.o : ./fftw/fftwnd.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
patches/Makefile_im.mingw view on Meta::CPAN
../obj/$(BUILDNICK)/im_fftw/generic.o : ./fftw/generic.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/malloc.o : ./fftw/malloc.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/planner.o : ./fftw/planner.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/putils.o : ./fftw/putils.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/rader.o : ./fftw/rader.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/timer.o : ./fftw/timer.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/twiddle.o : ./fftw/twiddle.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/wisdom.o : ./fftw/wisdom.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
../obj/$(BUILDNICK)/im_fftw/wisdomio.o : ./fftw/wisdomio.c ; gcc $(CF_ALL) $(CF_im_fftw) $^ -o $@
$(SLIB_im_fftw): $(OBJS_im_fftw)
view all matches for this distribution
view release on metacpan or search on metacpan
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
//
// cc -static -O3 Judy1LTime.c -lJudy -lm
//
// the -static is for a little better performace on some platforms
//
// if optional high-resolution timers are desired:
//
// cc -static -O3 -DJU_LINUX_IA32 Judy1LTime.c -lJudy -lm
//
// and read below:
//
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
// Note: I have found some Linux systems (2.4.18-6mdk) have bugs in the
// gettimeofday() routine. Sometimes the difference of two consective calls
// returns a negative ~2840 microseconds instead of 0 or 1. If you use the
// above #include "timeit.h" and compile with timeit.c and use
// -DJU_LINUX_IA32, that problem will be eliminated. This is because for
// delta times less than .1 sec, the hardware free running timer is used
// instead of gettimeofday(). I have found the negative time problem
// appears about 40-50 times per second with numerous gettimeofday() calls.
// You should just ignore negative times output.
#define TIMER_vars(T) struct timeval __TVBeg_##T, __TVEnd_##T
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
{
// Names of Judy Arrays
void *J1 = NULL; // Judy1
void *JL = NULL; // JudyL
TIMER_vars(tm1); // declare timer variables
Word_t Count1, CountL;
Word_t Bytes;
double Mult;
Pms_t Pms;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyIns"
Word_t
TestJudyIns(void **J1, void **JL, Word_t Seed, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t TstIndex;
Word_t elm;
Word_t *PValue;
Word_t Seed1 = 0;
int Rc;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyDup"
Word_t
TestJudyDup(void **J1, void **JL, Word_t Seed, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t LowIndex = ~0UL;
Word_t TstIndex;
Word_t elm;
Word_t *PValue;
Word_t Seed1;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyGet"
Word_t
TestJudyGet(void *J1, void *JL, Word_t Seed, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t LowIndex = ~0UL;
Word_t TstIndex;
Word_t elm;
Word_t *PValue;
Word_t Seed1;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyCount"
int
TestJudyCount(void *J1, void *JL, Word_t LowIndex, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t elm;
Word_t Count1, CountL;
Word_t TstIndex = LowIndex;
int Rc;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyNext"
Word_t
TestJudyNext(void *J1, void *JL, Word_t LowIndex, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t elm;
double DDel;
Word_t icnt;
Word_t lp;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyPrev"
int
TestJudyPrev(void *J1, void *JL, Word_t HighIndex, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t elm;
double DDel;
Word_t icnt;
Word_t lp;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
// Returns number of consecutive Indexes
Word_t
TestJudyNextEmpty(void *J1, void *JL, Word_t LowIndex, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t elm;
double DDel;
Word_t icnt;
Word_t lp;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyPrevEmpty"
Word_t
TestJudyPrevEmpty(void *J1, void *JL, Word_t HighIndex, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t elm;
double DDel;
Word_t icnt;
Word_t lp;
src/judy-1.0.5/test/Judy1LTime.c view on Meta::CPAN
#define __FUNCTI0N__ "TestJudyDel"
int
TestJudyDel(void **J1, void **JL, Word_t Seed, Word_t Elements)
{
TIMER_vars(tm1); // declare timer variables
Word_t TstIndex;
Word_t elm;
Word_t Seed1;
int Rc;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Plotly/Kaleido.pm view on Meta::CPAN
my $h;
my $data;
eval {
my ( $in, $out, $err );
$h = IPC::Run::start( \@cmd, \$in, \$out, \$err,
my $t = IPC::Run::timer(30) );
while ( not $data and not $t->is_expired ) {
$h->pump;
$data = $decode_json_safe->($out);
}
$h->finish;
view all matches for this distribution
view release on metacpan or search on metacpan
prototype.js view on Meta::CPAN
this.registerCallback();
},
registerCallback: function() {
this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);
},
execute: function() {
this.callback(this);
},
stop: function() {
if (!this.timer) return;
clearInterval(this.timer);
this.timer = null;
},
onTimerEvent: function() {
if (!this.currentlyExecuting) {
try {
prototype.js view on Meta::CPAN
this.onTimerEvent();
},
stop: function() {
this.updater.options.onComplete = undefined;
clearTimeout(this.timer);
(this.onComplete || Prototype.emptyFunction).apply(this, arguments);
},
updateComplete: function(response) {
if (this.options.decay) {
this.decay = (response.responseText == this.lastText ?
this.decay * this.options.decay : 1);
this.lastText = response.responseText;
}
this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency);
},
onTimerEvent: function() {
this.updater = new Ajax.Updater(this.container, this.url, this.options);
}
prototype.js view on Meta::CPAN
(function() {
/* Support for the DOMContentLoaded event is based on work by Dan Webb,
Matthias Miller, Dean Edwards and John Resig. */
var timer, fired = false;
function fireContentLoadedEvent() {
if (fired) return;
if (timer) window.clearInterval(timer);
document.fire("dom:loaded");
fired = true;
}
if (document.addEventListener) {
if (Prototype.Browser.WebKit) {
timer = window.setInterval(function() {
if (/loaded|complete/.test(document.readyState))
fireContentLoadedEvent();
}, 0);
Event.observe(window, "load", fireContentLoadedEvent);
view all matches for this distribution
view release on metacpan or search on metacpan
patches/SDL-1.2.14-configure view on Meta::CPAN
enable_video
enable_events
enable_joystick
enable_cdrom
enable_threads
enable_timers
enable_file
enable_loadso
enable_cpuinfo
enable_assembly
enable_oss
patches/SDL-1.2.14-configure view on Meta::CPAN
--enable-video Enable the video subsystem [[default=yes]]
--enable-events Enable the events subsystem [[default=yes]]
--enable-joystick Enable the joystick subsystem [[default=yes]]
--enable-cdrom Enable the cdrom subsystem [[default=yes]]
--enable-threads Enable the threading subsystem [[default=yes]]
--enable-timers Enable the timer subsystem [[default=yes]]
--enable-file Enable the file subsystem [[default=yes]]
--enable-loadso Enable the shared object loading subsystem
[[default=yes]]
--enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
--enable-assembly Enable assembly routines [[default=yes]]
patches/SDL-1.2.14-configure view on Meta::CPAN
SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
SOURCES="$SOURCES $srcdir/src/events/*.c"
SOURCES="$SOURCES $srcdir/src/file/*.c"
SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
SOURCES="$SOURCES $srcdir/src/thread/*.c"
SOURCES="$SOURCES $srcdir/src/timer/*.c"
SOURCES="$SOURCES $srcdir/src/video/*.c"
# Check whether --enable-audio was given.
if test "${enable_audio+set}" = set; then :
patches/SDL-1.2.14-configure view on Meta::CPAN
if test x$enable_threads != xyes; then
$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
fi
# Check whether --enable-timers was given.
if test "${enable_timers+set}" = set; then :
enableval=$enable_timers;
else
enable_timers=yes
fi
if test x$enable_timers != xyes; then
$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
fi
# Check whether --enable-file was given.
if test "${enable_file+set}" = set; then :
patches/SDL-1.2.14-configure view on Meta::CPAN
case "$host" in
arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
ARCH=linux
CheckDummyVideo
CheckIPod
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
;;
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
case "$host" in
*-*-linux*) ARCH=linux ;;
patches/SDL-1.2.14-configure view on Meta::CPAN
SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
have_threads=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
;;
*-*-qnx*)
ARCH=qnx
CheckDummyVideo
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_CDROM_QNX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
have_cdrom=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
;;
*-*-mingw32*)
ARCH=win32
if test "$build" != "$host"; then # cross-compiling
patches/SDL-1.2.14-configure view on Meta::CPAN
SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
have_threads=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_WIN32 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
have_timers=yes
fi
# Set up files for the shared object loading library
if test x$enable_loadso = xyes; then
$as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_CDROM_WIN32 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
have_cdrom=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
# Set up the system libraries we need
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
;;
*-wince*)
patches/SDL-1.2.14-configure view on Meta::CPAN
SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
have_threads=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_WINCE 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
have_timers=yes
fi
# Set up files for the shared object loading library
if test x$enable_loadso = xyes; then
$as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h
patches/SDL-1.2.14-configure view on Meta::CPAN
SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
have_threads=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_BEOS 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
have_timers=yes
fi
# Set up files for the shared object loading library
if test x$enable_loadso = xyes; then
case "$host" in
*-*-beos*)
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_CDROM_MACOSX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
have_cdrom=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
have_timers=yes
fi
# The Mac OS X platform requires special setup.
SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
SDL_LIBS="-lSDLmain $SDL_LIBS"
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_CDROM_MINT 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
have_cdrom=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
if test x$enable_threads = xyes -a x$enable_pth = xyes; then
$as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
else
$as_echo "#define SDL_TIMER_MINT 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
fi
have_timers=yes
fi
;;
*-riscos)
ARCH=riscos
CheckOSS
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_JOYSTICK_RISCOS 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
have_joystick=yes
fi
# Set up files for the timer library
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMER_RISCOS 1" >>confdefs.h
SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
have_timers=yes
fi
# The RISC OS platform requires special setup.
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
;;
*)
patches/SDL-1.2.14-configure view on Meta::CPAN
$as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
fi
SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
fi
if test x$have_timers != xyes; then
if test x$enable_timers = xyes; then
$as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
fi
SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
fi
if test x$have_loadso != xyes; then
if test x$enable_loadso = xyes; then
$as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
view all matches for this distribution
view release on metacpan or search on metacpan
src/subversion/subversion/po/sv.po view on Meta::CPAN
"\n"
"Denna funktion är till för arkivförvaltare som vill utnyttja nya\n"
"funktioner i Subversion utan att behöva företa sig en hel utskrivning\n"
"och återställning av arkivet. Uppgraderingen i sig gör bara så lite arbete\n"
"som nödvändigt för att åstadkomma detta och samtidigt upprätthålla arkivets\n"
"helhet. Den garanterar inte ett optimerat arkivtillstånd vilket en\n"
"utskrivning och återställning skulle göra.\n"
#: ../svnadmin/svnadmin.c:483
msgid ""
"usage: svnadmin verify REPOS_PATH\n"
src/subversion/subversion/po/sv.po view on Meta::CPAN
"Optimize network handling based on the assumption\n"
" that most clients are connected with a bitrate of\n"
" ARG Mbit/s.\n"
" Default is 0 (optimizations disabled)."
msgstr ""
"Optimera nätverkshanteringen under antagandet att\n"
" de flesta klienter är anslutna med en\n"
" överföringshastighet på ARG Mbit/s.\n"
" Normalvärdet är 0 (optimeringar avstängda)."
#. ### Making the assumption here that WIN32 never has fork and so
#. * ### this option never exists when --service exists.
#: ../svnserve/svnserve.c:256
msgid "use threads instead of fork [mode: daemon]"
view all matches for this distribution
view release on metacpan or search on metacpan
share/swagger-ui-bundle.js.map view on Meta::CPAN
{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/universalModuleDefinition","webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/imm...
view all matches for this distribution
view release on metacpan or search on metacpan
src/win32/include/sys/time.h view on Meta::CPAN
#define _TIMEVAL_DEFINED
struct timeval {
long tv_sec;
long tv_usec;
};
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp, uvp, cmp) \
(((tvp)->tv_sec != (uvp)->tv_sec) ? \
((tvp)->tv_sec cmp (uvp)->tv_sec) : \
((tvp)->tv_usec cmp (uvp)->tv_usec))
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#endif /* _TIMEVAL_DEFINED */
#ifndef _TIMEZONE_DEFINED /* also in sys/time.h */
#define _TIMEZONE_DEFINED
/* Provided for compatibility with code that assumes that
view all matches for this distribution
view release on metacpan or search on metacpan
#define NT_PPC_VSX 0x102 /* PowerPC VSX registers */
#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
#define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */
#define NT_S390_TIMER 0x301 /* s390 timer register */
#define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */
#define NT_S390_TODPREG 0x303 /* s390 TOD programmable register */
#define NT_S390_CTRS 0x304 /* s390 control registers */
#define NT_S390_PREFIX 0x305 /* s390 prefix register */
#define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */
view all matches for this distribution
view release on metacpan or search on metacpan
share/docs/data-218318ee90d3522428760e464306d0ed.js view on Meta::CPAN
If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25
*/
Docs = {"data":{"localStorageDb":"ext-3","guides":[],"search":[{"meta":{},"icon":"icon-class","fullName":"Ext.CompositeElement","sort":1,"name":"CompositeElement","url":"#!/api/Ext.CompositeElement"},{"meta":{},"icon":"icon-method","fullName":"Ext.Co...
view all matches for this distribution
view release on metacpan or search on metacpan
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
}
};
}
});
}
var fxNow, timerId,
rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ],
tweeners = {
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
if ( jQuery.isFunction( animation.opts.start ) ) {
animation.opts.start.call( elem, animation );
}
jQuery.fx.timer(
jQuery.extend( tick, {
elem: elem,
anim: animation,
queue: animation.opts.queue
})
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
}
return this.each(function() {
var dequeue = true,
index = type != null && type + "queueHooks",
timers = jQuery.timers,
data = jQuery._data( this );
if ( index ) {
if ( data[ index ] && data[ index ].stop ) {
stopQueue( data[ index ] );
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
stopQueue( data[ index ] );
}
}
}
for ( index = timers.length; index--; ) {
if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
timers[ index ].anim.stop( gotoEnd );
dequeue = false;
timers.splice( index, 1 );
}
}
// start the next in the queue if the last step wasn't forced
// timers currently will call their complete callbacks, which will dequeue
// but only if they were gotoEnd
if ( dequeue || !gotoEnd ) {
jQuery.dequeue( this, type );
}
});
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
return this.each(function() {
var index,
data = jQuery._data( this ),
queue = data[ type + "queue" ],
hooks = data[ type + "queueHooks" ],
timers = jQuery.timers,
length = queue ? queue.length : 0;
// enable finishing flag on private data
data.finish = true;
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
if ( hooks && hooks.stop ) {
hooks.stop.call( this, true );
}
// look for any active animations, and finish them
for ( index = timers.length; index--; ) {
if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
timers[ index ].anim.stop( true );
timers.splice( index, 1 );
}
}
// look for any animations in the old queue and finish them
for ( index = 0; index < length; index++ ) {
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
swing: function( p ) {
return 0.5 - Math.cos( p*Math.PI ) / 2;
}
};
jQuery.timers = [];
jQuery.fx = Tween.prototype.init;
jQuery.fx.tick = function() {
var timer,
timers = jQuery.timers,
i = 0;
fxNow = jQuery.now();
for ( ; i < timers.length; i++ ) {
timer = timers[ i ];
// Checks the timer has not already been removed
if ( !timer() && timers[ i ] === timer ) {
timers.splice( i--, 1 );
}
}
if ( !timers.length ) {
jQuery.fx.stop();
}
fxNow = undefined;
};
jQuery.fx.timer = function( timer ) {
if ( timer() && jQuery.timers.push( timer ) ) {
jQuery.fx.start();
}
};
jQuery.fx.interval = 13;
jQuery.fx.start = function() {
if ( !timerId ) {
timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
}
};
jQuery.fx.stop = function() {
clearInterval( timerId );
timerId = null;
};
jQuery.fx.speeds = {
slow: 600,
fast: 200,
share/vendor/js/jquery-1.10.2.js view on Meta::CPAN
// Back Compat <1.8 extension point
jQuery.fx.step = {};
if ( jQuery.expr && jQuery.expr.filters ) {
jQuery.expr.filters.animated = function( elem ) {
return jQuery.grep(jQuery.timers, function( fn ) {
return elem === fn.elem;
}).length;
};
}
jQuery.fn.offset = function( options ) {
view all matches for this distribution
view release on metacpan or search on metacpan
xgboost/dmlc-core/include/dmlc/recordio.h
xgboost/dmlc-core/include/dmlc/registry.h
xgboost/dmlc-core/include/dmlc/serializer.h
xgboost/dmlc-core/include/dmlc/thread_local.h
xgboost/dmlc-core/include/dmlc/threadediter.h
xgboost/dmlc-core/include/dmlc/timer.h
xgboost/dmlc-core/include/dmlc/type_traits.h
xgboost/dmlc-core/make/config.mk
xgboost/dmlc-core/make/dmlc.mk
xgboost/dmlc-core/scripts/lint.py
xgboost/dmlc-core/scripts/packages.mk
xgboost/rabit/include/dmlc/type_traits.h
xgboost/rabit/include/rabit/c_api.h
xgboost/rabit/include/rabit/internal/engine.h
xgboost/rabit/include/rabit/internal/io.h
xgboost/rabit/include/rabit/internal/rabit-inl.h
xgboost/rabit/include/rabit/internal/timer.h
xgboost/rabit/include/rabit/internal/utils.h
xgboost/rabit/include/rabit/rabit.h
xgboost/rabit/include/rabit/serializable.h
xgboost/rabit/lib/README.md
xgboost/rabit/python/rabit.py
view all matches for this distribution
view release on metacpan or search on metacpan
libcares/acinclude.m4 view on Meta::CPAN
fi
#
case "$ac_cv_func_clock_gettime" in
yes)
AC_DEFINE_UNQUOTED(HAVE_CLOCK_GETTIME_MONOTONIC, 1,
[Define to 1 if you have the clock_gettime function and monotonic timer.])
;;
esac
#
fi
#
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
view release on metacpan or search on metacpan
libuv/docs/code/proc-streams/main.c
libuv/docs/code/proc-streams/test.c
libuv/docs/code/progress/main.c
libuv/docs/code/queue-cancel/main.c
libuv/docs/code/queue-work/main.c
libuv/docs/code/ref-timer/main.c
libuv/docs/code/signal/main.c
libuv/docs/code/spawn/main.c
libuv/docs/code/tcp-echo-server/main.c
libuv/docs/code/thread-create/main.c
libuv/docs/code/tty-gravity/main.c
libuv/docs/src/static/loop_iteration.png
libuv/docs/src/stream.rst
libuv/docs/src/tcp.rst
libuv/docs/src/threading.rst
libuv/docs/src/threadpool.rst
libuv/docs/src/timer.rst
libuv/docs/src/tty.rst
libuv/docs/src/udp.rst
libuv/docs/src/upgrading.rst
libuv/docs/src/version.rst
libuv/gyp_uv.py
libuv/src/inet.c
libuv/src/queue.h
libuv/src/strscpy.c
libuv/src/strscpy.h
libuv/src/threadpool.c
libuv/src/timer.c
libuv/src/unix/aix-common.c
libuv/src/unix/aix.c
libuv/src/unix/android-ifaddrs.c
libuv/src/unix/async.c
libuv/src/unix/atomic-ops.h
libuv/test/benchmark-fs-stat.c
libuv/test/benchmark-getaddrinfo.c
libuv/test/benchmark-list.h
libuv/test/benchmark-loop-count.c
libuv/test/benchmark-million-async.c
libuv/test/benchmark-million-timers.c
libuv/test/benchmark-multi-accept.c
libuv/test/benchmark-ping-pongs.c
libuv/test/benchmark-pound.c
libuv/test/benchmark-pump.c
libuv/test/benchmark-sizes.c
libuv/test/test-tcp-writealot.c
libuv/test/test-thread-equal.c
libuv/test/test-thread.c
libuv/test/test-threadpool-cancel.c
libuv/test/test-threadpool.c
libuv/test/test-timer-again.c
libuv/test/test-timer-from-check.c
libuv/test/test-timer.c
libuv/test/test-tmpdir.c
libuv/test/test-tty-duplicate-key.c
libuv/test/test-tty.c
libuv/test/test-udp-alloc-cb-fail.c
libuv/test/test-udp-bind.c
view all matches for this distribution
view release on metacpan or search on metacpan
rfc1321.txt view on Meta::CPAN
/* Initialize block */
for (i = 0; i < TEST_BLOCK_LEN; i++)
block[i] = (unsigned char)(i & 0xff);
/* Start timer */
time (&startTime);
/* Digest blocks */
MDInit (&context);
for (i = 0; i < TEST_BLOCK_COUNT; i++)
MDUpdate (&context, block, TEST_BLOCK_LEN);
MDFinal (digest, &context);
/* Stop timer */
time (&endTime);
printf (" done\n");
printf ("Digest = ");
MDPrint (digest);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Tickit/Widget/Button.pm view on Meta::CPAN
method key_click
{
$self->click;
if( my $window = $self->window ) {
$self->set_style_tag( active => 1 );
$window->tickit->timer( after => 0.1, sub { $self->set_style_tag( active => 0 ) } );
}
return 1;
}
method _activate
view all matches for this distribution
view release on metacpan or search on metacpan
avs_setdocdate
avs_setdocdatetime
avs_setparseflags
avs_setrankval
avs_startdoc
avs_timer
avs_total_docs
avs_version
avs_create_options
avs_create_parameters
);
avs_setrankval(idx, valtype, value)
avs_startdoc(idx, pDocId, flags, pStartLoc)
avs_timer(current)
avs_total_docs(idx, pDoccount)
avs_version(license_key)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alvis/HTML.pm view on Meta::CPAN
{
$html=~s/<\/?(?:(?i)ruby|rbc|rtc|rb|rt|rp)(?=\W)/\0/sgo;
}
if ($self->{wml})
{
$html=~s/<\/?(?:(?i)access|card|template|wml|anchor|do|onevent|postfield|go|noop|prev|refresh|fieldset|optgroup|select|setvar|timer)(?=\W)/\0/sgo;
}
# $html=~s/=\s*([\"\'])([^\0]*?)\1/&_neutralize_trouble($1,$2)/sgoe;
$html=~s/(?<=\0).*?>//sgo;
$html=~s/\0/ /go;
lib/Alvis/HTML.pm view on Meta::CPAN
# If we have some tags left, do some fixing
if (!$self->{alvisKeep}||!$self->{alvisRemove}||!$self->{obsolete}||
!$self->{proprietary}||!$self->{xhtml}||!$self->{wml})
{
# Often we have <TAG ... </TAG>. Fix that.
$html=~s/(<\/?(?:(?i)a|frame|iframe|h[1-6]|p|div|dl|ul|ol|table|li|dd|dt|th|td|caption|tr|blockquote|hr|br|dir|menu|form|fieldset|legend|label|input|select|option|textarea|isindex|noframes|frameset|tfoot|body|tbody|html|head|abbr|acronym|address|app...
$html=~s/(?<=\0)([^>]*?)(?=\0)/$1>/sgo;
$html=~s/(?<=\0)([^\0>]*?)$/$1>/sgo;
$html=~s/\0/ /go;
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
my $id;
# Timer
my $timer_mem;
# because those variables have to be viewed in the sigint handler !!!
my $nlp_host;
my $nlp_port;
my $connection_retry;
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
}
###########################################################################
sub starttimer(){
my $sec;
my $usec;
($sec,$usec)=gettimeofday();
$usec/=1000000;
$timer_mem=($sec+$usec);
}
sub endtimer(){
my $sec;
my $usec;
($sec,$usec)=gettimeofday();
$usec/=1000000;
return (($sec+$usec)-$timer_mem);
}
sub linguistic_annotation {
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
$Alvis::NLPPlatform::Annotation::phrase_idx = 1;
$Alvis::NLPPlatform::Annotation::syntactic_relation_idx = 1;
print STDERR "Working Language: " . $Alvis::NLPPlatform::Annotation::ALVISLANGUAGE . "\n";
starttimer();
if ($ENABLE_TOKEN) {
# Tokenize
Alvis::NLPPlatform::UserNLPWrappers->tokenize($h_config,$doc_hash);
# print STDERR $Alvis::NLPPlatform::Annotation::nb_max_tokens. "\n";
$time_tok+=endtimer();
print STDERR "\tTokenization Time : $time_tok\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Tokenization Time : $time_tok";
if ($Alvis::NLPPlatform::Annotation::nb_max_tokens >0) {
# Scan for NE
if($ENABLE_NER==1){
starttimer();
Alvis::NLPPlatform::UserNLPWrappers->scan_ne($h_config, $doc_hash);
$time_ne+=endtimer();
print STDERR "\tNamed Entity Recognition Time : $time_ne\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Named Entity Recognition Time : $time_ne";
}
# Word segmentation
if($ENABLE_WORD==1){
starttimer();
Alvis::NLPPlatform::UserNLPWrappers->word_segmentation($h_config, $doc_hash);
$time_word+=endtimer();
print STDERR "\tWord Segmentation Time : $time_word\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Word Segmentation Time : $time_word";
}
if($dont_annotate==1){
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
push @tab_errors,"Temporary files can be found with the following prefix: $TMPFILE\n";
}
# Sentence segmentation
if($ENABLE_SENTENCE==1){
starttimer();
if(!$dont_annotate){Alvis::NLPPlatform::UserNLPWrappers->sentence_segmentation($h_config, $doc_hash)};
$time_sent+=endtimer();
print STDERR "\tSentence Segmentation Time : $time_sent\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Sentence Segmentation Time : $time_sent";
}
# PoS tagging / Lemmatization
if($ENABLE_POS==1){
starttimer();
if(!$dont_annotate){Alvis::NLPPlatform::UserNLPWrappers->pos_tag($h_config, $doc_hash)};
$time_pos+=endtimer();
print STDERR "\tPart of Speech Tagging Time : $time_pos\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Part of Speech Tagging Time : $time_pos";
}
# Term tagging
if($ENABLE_TERM_TAG==1){
starttimer();
if(!$dont_annotate){Alvis::NLPPlatform::UserNLPWrappers->term_tag($h_config, $doc_hash)};
$time_term+=endtimer();
print STDERR "\tTerm Tagging Time : $time_term\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Term Tagging Time : $time_term";
}
# Syntactic parsing
if($ENABLE_SYNTAX==1){
starttimer();
if(!$dont_annotate){Alvis::NLPPlatform::UserNLPWrappers->syntactic_parsing($h_config, $doc_hash)};
$time_synt+=endtimer();
print STDERR "\tSyntactic Parsing Time : $time_synt\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Syntactic Parsing Time : $time_synt";
}
# Semantic tagging
if($ENABLE_SEMANTIC_TAG==1){
starttimer();
if(!$dont_annotate){Alvis::NLPPlatform::UserNLPWrappers->semantic_feature_tagging($h_config, $doc_hash)};
$time_semtag+=endtimer();
print STDERR "\tSemantic Feature Tagging Time : $time_semtag\n";
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "Semantic Feature Tagging Time : $time_semtag";
}
}
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
$phrase_idx=1;
@tab_errors=();
starttimer();
# $doc_xml =~ s/("<\?xml version=\"1.0\" encoding=\"$charset\"?>\n
$doc_hash=Alvis::NLPPlatform::Annotation::load_xml($doc_xml, $h_config);
$time_load+=endtimer();
# Recording computing data (time and entity size)
# init
$doc_hash->{"log_processing0"}->{"datatype"}="log_processing";
$doc_hash->{"log_processing0"}->{"log_id"} = "time";
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
# Save to XML file
$cur_doc_nb++;
print STDERR "Rendering XML... ";
starttimer();
$time_render = 0;
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "XML rendering Time : \@RENDER_TIME_NOT_SET\@";
Alvis::NLPPlatform::Annotation::render_xml($doc_hash, $descriptor, $printCollectionHeaderFooter, $h_config);
$time_render+=endtimer();
# TODO : recording the xml rendering time
# Recording statistical data (time and entity size)
# XML rendering (unsuable)
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
print STDERR "Processing $id";
my $doc_hash;
Alvis::NLPPlatform::starttimer();
$doc_hash=Alvis::NLPPlatform::Annotation::load_xml($doc_xml, \%config);
my $time_load+=Alvis::NLPPlatform::endtimer();
# Recording computing data (time and entity size)
# init
# $doc_hash->{"log_processing"} = {};
$doc_hash->{"log_processing0"}->{"datatype"}="log_processing";
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
# Save to XML file
print STDERR "\tRendering XML... ";
starttimer();
$time_render = 0;
push @{$doc_hash->{"log_processing0"}->{"comments"}}, "XML rendering Time : \@RENDER_TIME_NOT_SET\@";
Alvis::NLPPlatform::Annotation::render_xml($doc_hash, $sock, 1,\%config);
$time_render+=endtimer();
# TODO : recording the xml rendering time
print STDERR "done\n";
print $sock "<DONE>\n";
lib/Alvis/NLPPlatform.pm view on Meta::CPAN
configuration file. The dependencies of the linguistic
annotations are then coded. For instance, asking for POS annotation will
imply tokenization, word and sentence segmentations.
=head2 starttimer()
starttimer()
This method records the current date and time. It is used to compute
the time of a processing step.
=head2 endtimer()
endtimer();
This method ends the timer and returns the time of a processing step, according to the time recorded by C<starttimer()>.
=head2 linguistic_annotation()
view all matches for this distribution
view release on metacpan or search on metacpan
t/test/resources/terms view on Meta::CPAN
mucosal immune response mucosal immune response
multicomponent phosphorelay multicomponent phosphorelay
multicopy plasmid multicopy plasmid
multicopy vector multicopy vector
multidrug-efflux multidrug-efflux
multimeric precursor multimeric precursor
multiple copy multiple copy
multiple protoxin gene multiple protoxin gene
multiple role multiple role
multiple sigma factor multiple sigma factor
multiple signal multiple signal
view all matches for this distribution