Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Microseconds (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_proto.go

    func (m *MicroTime) ProtoMicroTime() *Timestamp {
    	if m == nil {
    		return &Timestamp{}
    	}
    
    	// truncate precision to microseconds to match JSON marshaling/unmarshaling
    	truncatedNanoseconds := time.Duration(m.Time.Nanosecond()).Truncate(time.Microsecond)
    	return &Timestamp{
    		Seconds: m.Time.Unix(),
    		Nanos:   int32(truncatedNanoseconds),
    	}
    }
    
    // Size implements the protobuf marshalling interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 02 08:21:04 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StopwatchTest.java

      }
    
      public void testElapsed_micros() {
        stopwatch.start();
        ticker.advance(999);
        assertEquals(0, stopwatch.elapsed(MICROSECONDS));
        ticker.advance(1);
        assertEquals(1, stopwatch.elapsed(MICROSECONDS));
      }
    
      public void testElapsed_millis() {
        stopwatch.start();
        ticker.advance(999999);
        assertEquals(0, stopwatch.elapsed(MILLISECONDS));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Stopwatch.java

          return MILLISECONDS;
        }
        if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MICROSECONDS;
        }
        return NANOSECONDS;
      }
    
      private static String abbreviate(TimeUnit unit) {
        switch (unit) {
          case NANOSECONDS:
            return "ns";
          case MICROSECONDS:
            return "\u03bcs"; // μs
          case MILLISECONDS:
            return "ms";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/helpers_linux.go

    limitations under the License.
    */
    
    package kuberuntime
    
    import (
    	"k8s.io/kubernetes/pkg/kubelet/cm"
    	"math"
    )
    
    const (
    	milliCPUToCPU = 1000
    
    	// 100000 microseconds is equivalent to 100ms
    	quotaPeriod = 100000
    	// 1000 microseconds is equivalent to 1ms
    	// defined here:
    	// https://github.com/torvalds/linux/blob/cac03ac368fabff0122853de2422d4e17a32de08/kernel/sched/core.c#L10546
    	minQuotaPeriod = 1000
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Stopwatch.java

          return MILLISECONDS;
        }
        if (MICROSECONDS.convert(nanos, NANOSECONDS) > 0) {
          return MICROSECONDS;
        }
        return NANOSECONDS;
      }
    
      private static String abbreviate(TimeUnit unit) {
        switch (unit) {
          case NANOSECONDS:
            return "ns";
          case MICROSECONDS:
            return "\u03bcs"; // μs
          case MILLISECONDS:
            return "ms";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 21:38:09 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  6. pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go

    	}
    
    	delay, ok := res.Value().(uint64)
    	if !ok {
    		return 0, fmt.Errorf("InhibitDelayMaxUSec from logind is not a uint64 as expected")
    	}
    
    	// InhibitDelayMaxUSec is in microseconds
    	duration := time.Duration(delay) * time.Microsecond
    	return duration, nil
    }
    
    // InhibitShutdown creates an systemd inhibitor by calling logind's Inhibt() and returns the inhibitor lock
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/DarwinFileWatcherRegistryFactory.java

            return fileEventFunctions.newWatcher(fileEvents)
                // TODO Figure out a good value for this
                .withLatency(20, TimeUnit.MICROSECONDS)
                .start();
        }
    
        @Override
        protected FileWatcherUpdater createFileWatcherUpdater(
            OsxFileWatcher watcher,
            FileWatcherProbeRegistry probeRegistry,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/http-basic-auth.md

    #### The time to answer helps the attackers
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jan 11 14:33:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/log/log_test.go

    	{Ldate | Ltime | Lmicroseconds | Lshortfile, "XXX", "XXX" + Rdate + " " + Rtime + Rmicroseconds + " " + Rshortfile + " "},
    	{Ldate | Ltime | Lmicroseconds | Llongfile | Lmsgprefix, "XXX", Rdate + " " + Rtime + Rmicroseconds + " " + Rlongfile + " XXX"},
    	{Ldate | Ltime | Lmicroseconds | Lshortfile | Lmsgprefix, "XXX", Rdate + " " + Rtime + Rmicroseconds + " " + Rshortfile + " XXX"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/value/metrics.go

    			Subsystem: subsystem,
    			Name:      "transformation_duration_seconds",
    			Help:      "Latencies in seconds of value transformation operations.",
    			// In-process transformations (ex. AES CBC) complete on the order of 20 microseconds. However, when
    			// external KMS is involved latencies may climb into hundreds of milliseconds.
    			Buckets:        metrics.ExponentialBuckets(5e-6, 2, 25),
    			StabilityLevel: metrics.ALPHA,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 22:44:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
Back to top