Searched refs:DurationUnit (Results 1 – 8 of 8) sorted by relevance
/external/libtextclassifier/native/annotator/duration/ |
D | duration.cc | 31 using DurationUnit = internal::DurationUnit; typedef 44 DurationUnit duration_unit, in FillDurationUnitMap() 45 std::unordered_map<std::string, DurationUnit>* target_map, in FillDurationUnitMap() 58 std::unordered_map<std::string, DurationUnit> BuildTokenToDurationUnitMapping( in BuildTokenToDurationUnitMapping() 60 std::unordered_map<std::string, DurationUnit> mapping; in BuildTokenToDurationUnitMapping() 61 FillDurationUnitMap(options->week_expressions(), DurationUnit::WEEK, &mapping, in BuildTokenToDurationUnitMapping() 63 FillDurationUnitMap(options->day_expressions(), DurationUnit::DAY, &mapping, in BuildTokenToDurationUnitMapping() 65 FillDurationUnitMap(options->hour_expressions(), DurationUnit::HOUR, &mapping, in BuildTokenToDurationUnitMapping() 67 FillDurationUnitMap(options->minute_expressions(), DurationUnit::MINUTE, in BuildTokenToDurationUnitMapping() 69 FillDurationUnitMap(options->second_expressions(), DurationUnit::SECOND, in BuildTokenToDurationUnitMapping() [all …]
|
D | duration.h | 34 enum class DurationUnit { enum 49 std::unordered_map<std::string, internal::DurationUnit> 98 internal::DurationUnit unit = internal::DurationUnit::UNKNOWN; 123 internal::DurationUnit* duration_unit) const; 134 const std::unordered_map<std::string, internal::DurationUnit>
|
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/profiler/ |
D | Util.java | 43 static DurationUnit selectDurationUnitForDisplay(StopWatch sw) { in selectDurationUnitForDisplay() 47 static DurationUnit selectDurationUnitForDisplay(long durationInNanos) { in selectDurationUnitForDisplay() 49 return DurationUnit.NANOSECOND; in selectDurationUnitForDisplay() 51 return DurationUnit.MICROSECOND; in selectDurationUnitForDisplay() 53 return DurationUnit.MILLISSECOND; in selectDurationUnitForDisplay() 55 return DurationUnit.SECOND; in selectDurationUnitForDisplay() 72 DurationUnit du = selectDurationUnitForDisplay(sw); in durationInDurationUnitsAsStr() 76 static String durationInDurationUnitsAsStr(long nanos, DurationUnit durationUnit) { in durationInDurationUnitsAsStr() 98 static void appendDurationUnitAsStr(StringBuilder buf, DurationUnit durationUnit) { in appendDurationUnitAsStr()
|
D | Profiler.java | 189 DurationUnit du = Util.selectDurationUnitForDisplay(globalStopWatch); in toString() 199 DurationUnit du = Util.selectDurationUnitForDisplay(globalStopWatch); in log() 227 …private String buildProfilerString(DurationUnit du, String firstPrefix, String label, String inden… in buildProfilerString() 249 …private static void buildStopWatchString(StringBuilder buf, DurationUnit du, String prefix, String… in buildStopWatchString()
|
D | DurationUnit.java | 33 public enum DurationUnit { enum
|
D | StopWatch.java | 88 buf.append(Util.durationInDurationUnitsAsStr(elapsedTime(), DurationUnit.MICROSECOND)); in toString()
|
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/ |
D | UtilTest.java | 44 assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(10)); in testSelectDurationUnitForDisplay() 45 …assertEquals(DurationUnit.NANOSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MICR… in testSelectDurationUnitForDisplay() 46 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_MI… in testSelectDurationUnitForDisplay() 47 …assertEquals(DurationUnit.MICROSECOND, Util.selectDurationUnitForDisplay(9 * Util.NANOS_IN_ONE_MIL… in testSelectDurationUnitForDisplay() 48 …assertEquals(DurationUnit.MILLISSECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_M… in testSelectDurationUnitForDisplay() 49 …assertEquals(DurationUnit.SECOND, Util.selectDurationUnitForDisplay(11 * Util.NANOS_IN_ONE_SECOND)… in testSelectDurationUnitForDisplay()
|
/external/kotlinx.coroutines/site/ |
D | stdlib.package.list | 177 $dokka.location:kotlin.time.DurationUnitkotlin.time/-duration-unit/index.html
|