OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:shortduration
(Results
1 - 17
of
17
) sorted by null
/external/caliper/caliper/src/main/java/com/google/caliper/util/
ShortDuration.java
44
public abstract class
ShortDuration
implements Comparable<
ShortDuration
> {
47
public static
ShortDuration
of(long duration, TimeUnit unit) {
53
"
ShortDuration
cannot exceed 100 days: %s %s", duration, unit);
58
public static
ShortDuration
of(BigDecimal duration, TimeUnit unit) {
64
public static
ShortDuration
valueOf(String s) {
69
checkArgument(matcher.matches(), "Invalid
ShortDuration
: %s", s);
79
public static
ShortDuration
zero() {
86
private static
ShortDuration
ofPicos(long picos) {
98
ShortDuration
(long picos)
[
all
...]
/external/caliper/caliper/src/test/java/com/google/caliper/util/
ShortDurationTest.java
31
assertEquals(
ShortDuration
.zero(),
ShortDuration
.valueOf("0"));
50
ShortDuration
.valueOf("106751.99116730064592 days");
57
ShortDuration
d =
ShortDuration
.valueOf(s);
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
GcLogMessage.java
21
import com.google.caliper.util.
ShortDuration
;
38
private final
ShortDuration
duration;
40
GcLogMessage(Type type,
ShortDuration
duration) {
49
public
ShortDuration
duration() {
LogMessageParser.java
22
import com.google.caliper.util.
ShortDuration
;
52
ShortDuration
.of(BigDecimal.valueOf(Double.parseDouble(gcMatcher.group(2))), SECONDS));
/external/caliper/caliper/src/test/java/com/google/caliper/worker/
RuntimeWorkerTest.java
25
import com.google.caliper.util.
ShortDuration
;
38
private static final
ShortDuration
TIMING_INTERVAL =
ShortDuration
.of(100, MILLISECONDS);
42
ShortDuration
oneCycle =
ShortDuration
.of(new BigDecimal("2.0e-10"), SECONDS);
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
RuntimeInstrument.java
43
import com.google.caliper.util.
ShortDuration
;
73
private final
ShortDuration
nanoTimeGranularity;
76
RuntimeInstrument(@NanoTimeGranularity
ShortDuration
nanoTimeGranularity) {
160
ShortDuration
.valueOf(options.get(WARMUP_OPTION)),
161
ShortDuration
.valueOf(options.get(MAX_WARMUP_WALL_TIME_OPTION)),
199
ShortDuration
.valueOf(options.get(optionName)).to(NANOSECONDS));
205
ShortDuration
.valueOf(options.get(WARMUP_OPTION)),
206
ShortDuration
.valueOf(options.get(MAX_WARMUP_WALL_TIME_OPTION)),
245
final
ShortDuration
warmup;
246
final
ShortDuration
maxWarmupWallTime
[
all
...]
NanoTimeGranularityTester.java
22
import com.google.caliper.util.
ShortDuration
;
35
ShortDuration
testNanoTimeGranularity() {
56
return
ShortDuration
.of(LongMath.divide(total, TRIALS * 8, CEILING), NANOSECONDS);
ExperimentingRunnerModule.java
27
import com.google.caliper.util.
ShortDuration
;
175
@NanoTimeGranularity
ShortDuration
nanoTimeGranularity) {
231
@Provides @Singleton @NanoTimeGranularity static
ShortDuration
provideNanoTimeGranularity(
TrialRunLoop.java
27
import com.google.caliper.util.
ShortDuration
;
193
ShortDuration
timeLimit = options.timeLimit();
194
if (
ShortDuration
.zero().equals(timeLimit)) {
/external/caliper/caliper/src/main/java/com/google/caliper/options/
CaliperOptions.java
17
import com.google.caliper.util.
ShortDuration
;
33
ShortDuration
timeLimit();
ParsedOptions.java
23
import com.google.caliper.util.
ShortDuration
;
144
private
ShortDuration
runTime =
ShortDuration
.of(5, MINUTES);
149
this.runTime =
ShortDuration
.valueOf(timeLimitString);
155
@Override public
ShortDuration
timeLimit() {
/external/caliper/caliper/src/test/java/com/google/caliper/bridge/
LogMessageParserTest.java
26
import com.google.caliper.util.
ShortDuration
;
73
assertEquals(new GcLogMessage(INCREMENTAL,
ShortDuration
.of(1232, MICROSECONDS)),
75
assertEquals(new GcLogMessage(FULL,
ShortDuration
.of(5455, MICROSECONDS)),
77
assertEquals(new GcLogMessage(INCREMENTAL,
ShortDuration
.of(1424, MICROSECONDS)),
80
assertEquals(new GcLogMessage(FULL,
ShortDuration
.of(4486, MICROSECONDS)),
/external/caliper/examples/src/main/java/examples/
DemoBenchmark.java
25
import com.google.caliper.util.
ShortDuration
;
36
@Param({"1ns", "2 minutes"})
ShortDuration
duration;
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
RuntimeWorker.java
26
import com.google.caliper.util.
ShortDuration
;
118
ShortDuration
.of(options.timingIntervalNanos, NANOSECONDS));
/external/caliper/caliper/src/test/java/com/google/caliper/options/
ParsedOptionsTest.java
26
import com.google.caliper.util.
ShortDuration
;
155
assertEquals(
ShortDuration
.of(15, SECONDS), options.timeLimit());
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
RuntimeInstrumentTest.java
29
import com.google.caliper.util.
ShortDuration
;
58
this.instrument = new RuntimeInstrument(
ShortDuration
.of(100, NANOSECONDS));
/cts/tests/tests/widget/src/android/widget/cts/
ToastTest.java
223
long
shortDuration
= SystemClock.uptimeMillis() - start;
225
assertTrue(longDuration >
shortDuration
);
Completed in 2023 milliseconds