Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for startTicks (0.11 sec)

  1. src/runtime/runtime.go

    	// lock protects access to start* and val.
    	lock       mutex
    	startTicks int64
    	startTime  int64
    	val        atomic.Int64
    }
    
    // init initializes ticks to maximize the chance that we have a good ticksPerSecond reference.
    //
    // Must not run concurrently with ticksPerSecond.
    func (t *ticksType) init() {
    	lock(&ticks.lock)
    	t.startTime = nanotime()
    	t.startTicks = cputicks()
    	unlock(&ticks.lock)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

    @SuppressWarnings("GoodTime") // lots of violations
    @ElementTypesAreNonnullByDefault
    public final class Stopwatch {
      private final Ticker ticker;
      private boolean isRunning;
      private long elapsedNanos;
      private long startTick;
    
      /**
       * Creates (but does not start) a new stopwatch using {@link System#nanoTime} as its time source.
       *
       * @since 15.0
       */
      public static Stopwatch createUnstarted() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Stopwatch.java

    @SuppressWarnings("GoodTime") // lots of violations
    @ElementTypesAreNonnullByDefault
    public final class Stopwatch {
      private final Ticker ticker;
      private boolean isRunning;
      private long elapsedNanos;
      private long startTick;
    
      /**
       * Creates (but does not start) a new stopwatch using {@link System#nanoTime} as its time source.
       *
       * @since 15.0
       */
      public static Stopwatch createUnstarted() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 21:38:09 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top