to top
public class

TimeUtil

extends Object
java.lang.Object
   ↳ com.android.tradefed.util.TimeUtil

Class Overview

Contains time related utility methods.

Summary

Public Methods
static String formatElapsedTime(long elapsedTimeMs)
Return a prettified version of the given elapsed time in milliseconds.
static String formatTimeStamp(long epochTime)
Return a readable formatted version of the given epoch time.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String formatElapsedTime (long elapsedTimeMs)

Return a prettified version of the given elapsed time in milliseconds.

public static String formatTimeStamp (long epochTime)

Return a readable formatted version of the given epoch time.

Parameters
epochTime the epoch time in milliseconds
Returns
  • a user readable string