Tabnine Logo
StopWatch.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.helger.commons.timing.StopWatch
constructor

Best Java code snippets using com.helger.commons.timing.StopWatch.<init> (Showing top 7 results out of 315)

origin: com.helger/ph-webscopes

@Override
protected final void doPut (@Nonnull final HttpServletRequest aHttpRequest,
              @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onPut (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlPut.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
origin: com.helger/ph-webscopes

@Override
protected final void doGet (@Nonnull final HttpServletRequest aHttpRequest,
              @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onGet (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlGet.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
origin: com.helger/ph-webscopes

@Override
protected final void doPost (@Nonnull final HttpServletRequest aHttpRequest,
               @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onPost (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlPost.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
origin: com.helger/ph-webscopes

@Override
protected final void doHead (@Nonnull final HttpServletRequest aHttpRequest,
               @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onHead (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlHead.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
origin: com.helger/ph-webscopes

 @Override
 protected final void doTrace (@Nonnull final HttpServletRequest aHttpRequest,
                @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
 {
  final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
  final StopWatch aSW = new StopWatch (true);
  try
  {
   onTrace (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
  }
  finally
  {
   s_aTimerHdlTrace.addTime (aSW.stopAndGetMillis ());
   aRequestScopeInitializer.destroyScope ();
  }
 }
}
origin: com.helger/ph-webscopes

@Override
protected final void doDelete (@Nonnull final HttpServletRequest aHttpRequest,
                @Nonnull final HttpServletResponse aHttpResponse) throws ServletException, IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onDelete (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlDelete.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
origin: com.helger/ph-webscopes

@Override
protected final void doOptions (@Nonnull final HttpServletRequest aHttpRequest,
                @Nonnull final HttpServletResponse aHttpResponse) throws ServletException,
                                         IOException
{
 final RequestScopeInitializer aRequestScopeInitializer = beforeRequest (aHttpRequest, aHttpResponse);
 final StopWatch aSW = new StopWatch (true);
 try
 {
  onOptions (aHttpRequest, aHttpResponse, aRequestScopeInitializer.getRequestScope ());
 }
 finally
 {
  s_aTimerHdlOptions.addTime (aSW.stopAndGetMillis ());
  aRequestScopeInitializer.destroyScope ();
 }
}
com.helger.commons.timingStopWatch<init>

Popular methods of StopWatch

  • createdStarted
  • stopAndGetMillis
  • getMillis
  • stop
  • stopAndGetDuration

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • JFrame (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
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