本文整理了Java中cascading.util.Util.formatDurationHMSms()
方法的一些代码示例,展示了Util.formatDurationHMSms()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.formatDurationHMSms()
方法的具体详情如下:
包路径:cascading.util.Util
类名称:Util
方法名:formatDurationHMSms
暂无
代码示例来源:origin: cwensel/cascading
protected void waitForInputsReady( Map<String, LogicalInput> inputMap ) throws InterruptedException
{
long beginInputReady = System.currentTimeMillis();
HashSet<Input> inputs = new HashSet<Input>( inputMap.values() );
getContext().waitForAllInputsReady( inputs );
LOG.info( "flow node id: {}, all {} inputs ready in: {}", flowNode.getID(), inputs.size(), Util.formatDurationHMSms( System.currentTimeMillis() - beginInputReady ) );
}
代码示例来源:origin: cascading/cascading-hadoop2-tez
protected void waitForInputsReady( Map<String, LogicalInput> inputMap ) throws InterruptedException
{
long beginInputReady = System.currentTimeMillis();
HashSet<Input> inputs = new HashSet<Input>( inputMap.values() );
getContext().waitForAllInputsReady( inputs );
LOG.info( "flow node id: {}, all {} inputs ready in: {}", flowNode.getID(), inputs.size(), Util.formatDurationHMSms( System.currentTimeMillis() - beginInputReady ) );
}
代码示例来源:origin: cwensel/cascading
public static String formatDurationFromMillis( long duration )
{
if( duration / 1000 / 60 / 60 / 24 > 0.0 )
return formatDurationDHMSms( duration );
if( duration / 1000 / 60 / 60 > 0.0 )
return formatDurationHMSms( duration );
else
return formatDurationMSms( duration );
}
内容来源于网络,如有侵权,请联系作者删除!