Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,888 for timeIt (0.26 sec)

  1. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

          }
        },
        GET_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return asList(t.getStackTrace());
          }
        };
    
        boolean timeIt(int reps, int breakAt) {
          boolean dummy = false;
          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

          }
        },
        GET_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return asList(t.getStackTrace());
          }
        };
    
        boolean timeIt(int reps, int breakAt) {
          boolean dummy = false;
          for (int i = 0; i < reps; i++) {
            int f = 0;
            Throwable t = new Throwable();
            for (StackTraceElement ste : getStackTrace(t)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        Future<?> localTimer = timer;
        // Try to cancel the timer as an optimization.
        // timer may be null if this call to run was by the timer task since there is no happens-before
        // edge between the assignment to timer and an execution of the timer task.
        if (localTimer != null) {
          localTimer.cancel(false);
        }
    
        delegateRef = null;
        timer = null;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/1-time.md

    ### Timer changes
    
    Go 1.23 makes two significant changes to the implementation of
    [time.Timer] and [time.Ticker].
    
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. internal/dsync/dsync_test.go

    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    
    	dm.Lock(id, source)
    	time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond)
    	dm.Unlock(context.Background())
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  6. internal/http/server.go

    func (srv *Server) UseShutdownTimeout(d time.Duration) *Server {
    	srv.ShutdownTimeout = d
    	return srv
    }
    
    // UseIdleTimeout configure idle connection timeout
    func (srv *Server) UseIdleTimeout(d time.Duration) *Server {
    	srv.IdleTimeout = d
    	return srv
    }
    
    // UseReadHeaderTimeout configure read header timeout
    func (srv *Server) UseReadHeaderTimeout(d time.Duration) *Server {
    	srv.ReadHeaderTimeout = d
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. internal/amztime/iso8601_time.go

    }
    
    // ISO8601Parse parses ISO8601 date string
    func ISO8601Parse(iso8601 string) (t time.Time, err error) {
    	for _, layout := range []string{
    		iso8601TimeFormat,
    		iso8601TimeFormatLong,
    		time.RFC3339,
    	} {
    		t, err = time.Parse(layout, iso8601)
    		if err == nil {
    			return t, nil
    		}
    	}
    
    	return t, err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          fail("Unexpected InterruptedException");
        }
      }
    
      /** Checks that future.get times out, with the default timeout of {@code timeoutMillis()}. */
      void assertFutureTimesOut(Future<?> future) {
        assertFutureTimesOut(future, timeoutMillis());
      }
    
      /** Checks that future.get times out, with the given millisecond timeout. */
      void assertFutureTimesOut(Future<?> future, long timeoutMillis) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

       * Waits for the {@link ServiceManager} to become {@linkplain #isHealthy() healthy} for no more
       * than the given time. The manager will become healthy after all the component services have
       * reached the {@linkplain State#RUNNING running} state.
       *
       * @param timeout the maximum time to wait
       * @param unit the time unit of the timeout argument
       * @throws TimeoutException if not all of the services have finished starting within the deadline
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Monitor.java

       * the time to acquire the lock and the time to wait for the guard to be satisfied.
       *
       * @return whether the monitor was entered, which guarantees that the guard is now satisfied
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public boolean enterWhenUninterruptibly(Guard guard, long time, TimeUnit unit) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
Back to top