Tabnine Logo
StopWatch.createdStarted
Code IndexAdd Tabnine to your IDE (free)

How to use
createdStarted
method
in
com.helger.commons.timing.StopWatch

Best Java code snippets using com.helger.commons.timing.StopWatch.createdStarted (Showing top 20 results out of 315)

origin: com.helger/ph-xservlet

public void beforeRequest (@Nonnull final IRequestWebScope aRequestScope)
{
 m_aSW = StopWatch.createdStarted ();
}
origin: com.helger/peppol-directory-indexer

private static <T> T _timedSearch (@Nonnull final IThrowingSupplier <T, IOException> aRunnable,
                  @Nonnull final Query aQuery) throws IOException
{
 final StopWatch aSW = StopWatch.createdStarted ();
 try
 {
  return aRunnable.get ();
 }
 finally
 {
  final long nMillis = aSW.stopAndGetMillis ();
  s_aStatsQueryTimer.addTime (aQuery.toString (), nMillis);
  if (nMillis > CGlobal.MILLISECONDS_PER_SECOND)
   LOGGER.warn ("Lucene Query " + aQuery + " took too long: " + nMillis + "ms");
 }
}
origin: com.helger/ph-oton-core

public final void contextDestroyed (@Nonnull final ServletContextEvent aSCE)
{
 final ServletContext aSC = aSCE.getServletContext ();
 final StopWatch aSW = StopWatch.createdStarted ();
 if (LOGGER.isInfoEnabled ())
  LOGGER.info ("Servlet context '" + aSC.getServletContextName () + "' is being destroyed");
 // Callback before global scope end
 beforeContextDestroyed (aSC);
 // Shutdown global scope and destroy all singletons
 WebScopeManager.onGlobalEnd ();
 // Callback after global scope end
 afterContextDestroyed (aSC);
 // Handle statistics
 if (isHandleStatisticsOnEnd ())
  handleStatisticsOnEnd ();
 // Clean commons stuff etc
 PhotonBasic.shutdown ();
 if (isOnlyOneInstanceAllowed ())
 {
  // De-init
  s_aInited.set (false);
 }
 if (LOGGER.isInfoEnabled ())
  LOGGER.info ("Servlet context '" +
         aSC.getServletContextName () +
         "' was destroyed in " +
         aSW.stopAndGetMillis () +
         " milli seconds");
}
origin: com.helger/ph-xml

final StopWatch aSW = StopWatch.createdStarted ();
final ThreadDescriptorList ret = new ThreadDescriptorList ();
try
origin: com.helger/ph-db-jpa

                               @Nonnull final Callable <T> aCallable)
final StopWatch aSW = StopWatch.createdStarted ();
final EntityTransaction aTransaction = aEntityMgr.getTransaction ();
final boolean bTransactionRequired = !bAllowNestedTransactions || !aTransaction.isActive ();
origin: phax/as2-lib

final StopWatch aSW = StopWatch.createdStarted ();
DataSource aMsgDataSource = null;
try
origin: com.helger/ph-dao

final StopWatch aSW = StopWatch.createdStarted ();
try
 final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-dao

final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-dao

final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-db-jpa

final StopWatch aSW = StopWatch.createdStarted ();
try
origin: com.helger/ph-xml

try
 final StopWatch aSW = StopWatch.createdStarted ();
 DocumentBuilder aDocumentBuilder;
 boolean bFromPool = false;
origin: com.helger/ph-dao

final StopWatch aSW = StopWatch.createdStarted ();
try
 final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-oton-core

final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-oton-core

final StopWatch aSW = StopWatch.createdStarted ();
origin: phax/as2-lib

final StopWatch aSW = StopWatch.createdStarted ();
final long nBytes = AS2IOHelper.copy (aMessageIS, aMsgOS);
origin: com.helger/ph-oton-core

final StopWatch aSW = StopWatch.createdStarted ();
s_aStatsHdlExecute.increment (m_sFeedID);
origin: phax/as2-lib

final StopWatch aSW = StopWatch.createdStarted ();
final long nBytes = ((AS2HttpClient) aConn).send (aMsgIS, eCTE, aOutgoingDumper);
aSW.stop ();
final StopWatch aSW = StopWatch.createdStarted ();
origin: com.helger/ph-oton-core

  throw new IllegalStateException ("WebAppListener was already instantiated!");
final StopWatch aSW = StopWatch.createdStarted ();
m_aInitializationStartDT = PDTFactory.getCurrentLocalDateTime ();
origin: com.helger/ph-xml

final StopWatch aSW = StopWatch.createdStarted ();
origin: phax/as2-lib

final StopWatch aSW = StopWatch.createdStarted ();
try
com.helger.commons.timingStopWatchcreatedStarted

Popular methods of StopWatch

  • stopAndGetMillis
  • getMillis
  • <init>
  • stop
  • stopAndGetDuration

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now