Time taken by row major order
Instant start = Instant . now ( ) ; rowMajor ( ) ; Instant end = Instant . now ( ) ; System . out . println ( " Row ▁ major ▁ access ▁ time ▁ : ▁ " + Duration . between ( start , end ) ) ;