Class TimeKt

  • All Implemented Interfaces:

    
    public final class TimeKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> Pair<T, Long> time(Function0<T> block) Time this block of code and return the result and the time it took to execute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • time

         final static <T extends Any> Pair<T, Long> time(Function0<T> block)

        Time this block of code and return the result and the time it took to execute.