Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for highPrecisionTimeSince (0.16 sec)

  1. src/testing/fuzz.go

    				root.mu.Lock()
    				root.duration += highPrecisionTimeSince(root.start)
    				d := root.duration
    				root.mu.Unlock()
    				root.flushToParent(root.name, "--- FAIL: %s (%s)\n", root.name, fmtDuration(d))
    			}
    			didPanic = true
    			panic(err)
    		}
    		if err != nil {
    			doPanic(err)
    		}
    
    		// No panic or inappropriate Goexit.
    		f.duration += highPrecisionTimeSince(f.start)
    
    		if len(f.sub) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  2. src/testing/benchmark.go

    // StopTimer stops timing a test. This can be used to pause the timer
    // while performing complex initialization that you don't
    // want to measure.
    func (b *B) StopTimer() {
    	if b.timerOn {
    		b.duration += highPrecisionTimeSince(b.start)
    		runtime.ReadMemStats(&memStats)
    		b.netAllocs += memStats.Mallocs - b.startAllocs
    		b.netBytes += memStats.TotalAlloc - b.startBytes
    		b.timerOn = false
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top