Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for Microseconds (0.22 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. pkg/test/echo/common/util.go

    }
    
    // MicrosToDuration converts the given microseconds to a time.Duration.
    func MicrosToDuration(micros int64) time.Duration {
    	return time.Duration(micros) * time.Microsecond
    }
    
    // DurationToMicros converts the given duration to microseconds.
    func DurationToMicros(d time.Duration) int64 {
    	return int64(d / time.Microsecond)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 01 01:05:45 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. 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)
  7. android/guava/src/com/google/common/hash/Fingerprint2011.java

     * for information on the behaviour of the algorithm.
     *
     * <p>On Intel Core2 2.66, on 1000 bytes, fingerprint2011 takes 0.9 microseconds compared to
     * fingerprint at 4.0 microseconds and md5 at 4.5 microseconds.
     *
     * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
     * to unsigned arithmetic in all cases except:
     *
     * <ul>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/Fingerprint2011.java

     * for information on the behaviour of the algorithm.
     *
     * <p>On Intel Core2 2.66, on 1000 bytes, fingerprint2011 takes 0.9 microseconds compared to
     * fingerprint at 4.0 microseconds and md5 at 4.5 microseconds.
     *
     * <p>Note to maintainers: This implementation relies on signed arithmetic being bit-wise equivalent
     * to unsigned arithmetic in all cases except:
     *
     * <ul>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/jit/xla_activity.proto

    message XlaJitCompilationActivity {
      string cluster_name = 1;
    
      // The number of time this cluster has been compiled.
      int32 compile_count = 2;
    
      // Microseconds spent in the individual compilation being reported.
      int64 compile_time_us = 3;
    
      // Total microseconds spent in (re-)compiling this cluster so far.
      int64 cumulative_compile_time_us = 4;
    
      // Whether a persistent compilation cache entry was used.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 15 03:11:33 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top