How to get workflow execution start and end time with milliseconds?

Hi Team
Is it possible to get the workflow execution and activity time with milliseconds? Currently am using WorkflowExecutionInfo it has only workflowExecutionInfo.getStartTime().getSeconds()

Currently am using WorkflowExecutionInfo it has only workflowExecutionInfo.getStartTime().getSeconds()

You could use com.google.protobuf.util.TimeStamps util, for example:

Timestamps.toMillis(workflowExecutionInfo.getStartTime())

activity time with milliseconds

can you give more info on this?