Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for formatDuration (0.1 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIReportingUtilsTest.java

            assertEquals("0.001 s", CLIReportingUtils.formatDuration(1));
            assertEquals("0.999 s", CLIReportingUtils.formatDuration(1000 - 1));
            assertEquals("1.000 s", CLIReportingUtils.formatDuration(1000));
            assertEquals("59.999 s", CLIReportingUtils.formatDuration(60 * 1000 - 1));
            assertEquals("01:00 min", CLIReportingUtils.formatDuration(60 * 1000));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/concurrent/TaskLoggerTest.kt

      @Test fun formatTime() {
        assertThat(formatDuration(-3_499_999_999L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-3_000_000_000L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-2_500_000_000L)).isEqualTo(" -3 s ")
        assertThat(formatDuration(-2_499_999_999L)).isEqualTo(" -2 s ")
        assertThat(formatDuration(-1_500_000_000L)).isEqualTo(" -2 s ")
        assertThat(formatDuration(-1_499_999_999L)).isEqualTo(" -1 s ")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

        if (loggingEnabled) {
          val elapsedNs = queue.taskRunner.backend.nanoTime() - startNs
          if (completedNormally) {
            log(task, queue, "finished run in ${formatDuration(elapsedNs)}")
          } else {
            log(task, queue, "failed a run in ${formatDuration(elapsedNs)}")
          }
        }
      }
    }
    
    private fun Logger.log(
      task: Task,
      queue: TaskQueue,
      message: String,
    ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/event/ExecutionEventLogger.java

    import org.apache.maven.project.MavenProject;
    import org.slf4j.ILoggerFactory;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static org.apache.maven.cli.CLIReportingUtils.formatDuration;
    import static org.apache.maven.cli.CLIReportingUtils.formatTimestamp;
    
    /**
     * Logs execution events to logger, eventually user-supplied.
     *
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/main/webapp/WEB-INF/fe.tld

      </function>
    
      <function>
        <description>
          Returns formatted duration from a given value.
        </description>
        <name>formatDuration</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.lang.String formatDuration(long)</function-signature>
        <example>
          ${fe:formatDuration(1234)}
        </example>
      </function>
    
      <function>
        <description>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 10K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

        }
        task.nextExecuteNanoTime = executeNanoTime
        taskRunner.logger.taskLog(task, this) {
          if (recurrence) {
            "run again after ${formatDuration(executeNanoTime - now)}"
          } else {
            "scheduled after ${formatDuration(executeNanoTime - now)}"
          }
        }
    
        // Insert in chronological order. Always compare deltas because nanoTime() is permitted to wrap.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                return StringUtil.EMPTY;
            }
            return date.format(DateTimeFormatter.ofPattern(format, Locale.ROOT));
        }
    
        public static String formatDuration(final long durationMillis) {
            return DurationFormatUtils.formatDuration(durationMillis, "d 'days' HH:mm:ss.SSS").replace("0 days", StringUtil.EMPTY).trim();
    
        }
    
        public static String formatNumber(final long value, final String pattern) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java

            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
            return sdf.format(new Date(timestamp));
        }
    
        public static String formatDuration(long duration) {
            // CHECKSTYLE_OFF: MagicNumber
            long ms = duration % 1000;
            long s = (duration / ONE_SECOND) % 60;
            long m = (duration / ONE_MINUTE) % 60;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top