Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for roundsMillisWhenDurationIsGreaterThanOneMinute (1.5 sec)

  1. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/TimeFormattingTest.groovy

            TimeFormatting.formatDurationVeryTerse(-60 * 60 * 1000) == '-1h0m0.00s'
            TimeFormatting.formatDurationVeryTerse(-(23 * 60 * 1000 + 12 * 1000 + 310)) == '-23m12.31s'
        }
    
        def roundsMillisWhenDurationIsGreaterThanOneMinute() {
            expect:
            TimeFormatting.formatDurationVeryTerse(60 * 1000 + 12 * 1000 + 300) == '1m12.30s'
            TimeFormatting.formatDurationVeryTerse(60 * 1000 + 12 * 1000 + 301) == '1m12.30s'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top