Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Elapsed (0.05 sec)

  1. cmd/rebalance-admin.go

    		totalBytesToRebal := float64(ps.InitCapacity)*meta.PercentFreeGoal - float64(ps.InitFreeSpace)
    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    		if !stopTime.IsZero() { // rebalance is stopped or completed
    			elapsed = stopTime.Sub(ps.Info.StartTime)
    			eta = 0
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. cmd/admin-handlers_test.go

    		// printEntries(exp)
    		// printEntries(got)
    		for i, e := range exp {
    			if !e.Timestamp.Equal(got[i].Timestamp) {
    				return i, false
    			}
    			// Skip checking elapsed since it's time sensitive.
    			// if e.Elapsed != got[i].Elapsed {
    			// 	return false
    			// }
    			if e.Resource != got[i].Resource {
    				return i, false
    			}
    			if e.Type != got[i].Type {
    				return i, false
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        public boolean isExpired() {
            if (type == HandleType.PERSISTENT) {
                return false; // Persistent handles don't expire
            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
        /**
         * Update the last access time
         */
        public void updateAccessTime() {
            this.lastAccessTime = System.currentTimeMillis();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

      @Benchmark
      long stopwatch(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbOperationException.java

        public long getNtStatus() {
            return ntStatus;
        }
    
        public String getServerMessage() {
            return serverMessage;
        }
    
        /**
         * Get elapsed time since operation started
         *
         * @return elapsed time in milliseconds
         */
        public long getElapsedTime() {
            return System.currentTimeMillis() - operationStartTime;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/StopwatchBenchmark.java

      @Benchmark
      long stopwatch(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          Stopwatch s = Stopwatch.createStarted();
          // here is where you would do something
          total += s.elapsed(NANOSECONDS);
        }
        return total;
      }
    
      @Benchmark
      long manual(int reps) {
        long total = 0;
        for (int i = 0; i < reps; i++) {
          long start = System.nanoTime();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertFalse(exception.isAuthenticationError());
            assertFalse(exception.isFileSystemError());
            assertTrue(exception.isTransientError());
        }
    
        @Test
        @DisplayName("Should track elapsed time")
        void testElapsedTime() throws InterruptedException {
            // Given
            exception = new SmbOperationException(SmbOperationException.ErrorCode.BUSY, "Server busy");
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. docs/smb3-features/02-persistent-handles-design.md

            public boolean isExpired() {
                if (type == HandleType.PERSISTENT) {
                    return false;  // Persistent handles don't expire
                }
                long elapsed = System.currentTimeMillis() - lastAccessTime;
                return elapsed > timeout;
            }
            
            public void updateAccessTime() {
                this.lastAccessTime = System.currentTimeMillis();
            }
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  9. cmd/utils.go

    		}
    		stop := fgprof.Start(f, fgprof.FormatPprof)
    		startedAt := time.Now()
    		prof.stopFn = func() ([]byte, error) {
    			if elapsed := time.Since(startedAt); elapsed < 100*time.Millisecond {
    				// Light hack around https://github.com/felixge/fgprof/pull/34
    				time.Sleep(100*time.Millisecond - elapsed)
    			}
    			err := stop()
    			if err != nil {
    				return nil, err
    			}
    			err = f.Close()
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

            return totalReceiveTime.get() / (double) receives / 1000.0; // Convert to microseconds
        }
    
        /**
         * Calculate total throughput in MB/s based on total time
         *
         * @param totalTimeSeconds total elapsed time in seconds
         * @return throughput in MB/s
         */
        public double getThroughputMBps(double totalTimeSeconds) {
            if (totalTimeSeconds <= 0.0) {
                return 0.0;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top