Lines Matching refs:ns
26 // Units are in per-thread CPU ns, as reported by
79 // then adds a sample for tracked CPU ns since the previous
82 // now disabled, then adds a sample for the tracked CPU ns accumulated
86 // Returns true if the sample 'ns' is valid, or false if invalid.
87 // Note that 'ns' is an output parameter passed by reference.
90 bool sampleAndEnable(double& ns);
95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since
99 // Note that 'ns' is an output parameter passed by reference.
102 bool sample(double& ns);
104 // Return the elapsed delta wall clock ns since initial enable or reset,
124 long long mAccumulator; // accumulated thread CPU time since last sample, in ns