gmarokov/dotnet-trx2sonar

View on GitHub
TrxToSonar/Utils.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System;

namespace TrxToSonar
{
    public static class Utils
    {
        public static long ToSonarDuration(string trxDuration)
        {
            return TimeSpan.TryParse(trxDuration, out TimeSpan result) ? (long) result.TotalMilliseconds : 0;
        }
    }
}