Searched refs:DurationUnit (Results 1 – 9 of 9) sorted by relevance
31 using DurationUnit = internal::DurationUnit; typedef44 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 …]
34 enum class DurationUnit { enum49 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>
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()
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()
33 public enum DurationUnit { enum
88 buf.append(Util.durationInDurationUnitsAsStr(elapsedTime(), DurationUnit.MICROSECOND)); in toString()
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()
177 $dokka.location:kotlin.time.DurationUnitkotlin.time/-duration-unit/index.html
META-INF/ META-INF/MANIFEST.MF kotlin/ kotlin/collections/ kotlin/ ...