message: Export timestamps in nanoseconds from virtual scheduler.
diff: @@ -1153,6 +1153,9 @@ void VirtualScheduler::GenerateRunMetadata(RunMetadata* metadata) {
  }
  node_stats->set_timeline_label(node_def->op());
  node_stats->set_node_name(node_def->name());
  + // Timestamps in microseconds.
  + // TODO(b/138165866): Remove once TimelineServer support is no longer
  + // needed.
  node_stats->set_op_start_rel_micros(0);
  node_stats->set_all_start_micros(
  nodestate.time_scheduled.asMicroSeconds().count());
  @@ -1162,6 +1165,14 @@ void VirtualScheduler::GenerateRunMetadata(RunMetadata* metadata) {
  node_stats->set_all_end_rel_micros(
  nodestate.time_finished.asMicroSeconds().count() -
  nodestate.time_scheduled.asMicroSeconds().count());
  + // Timestamps in nanoseconds.
  + node_stats->set_op_start_rel_nanos(0);
  + node_stats->set_all_start_nanos(nodestate.time_scheduled.count());
  + node_stats->set_op_end_rel_nanos(nodestate.time_finished.count() -
  + nodestate.time_scheduled.count());
  + node_stats->set_all_end_rel_nanos(nodestate.time_finished.count() -
  + nodestate.time_scheduled.count());
  +
  auto* mem_stats = node_stats->mutable_memory_stats();
  // VirtualScheduler does not specify scratch pad memory usage.
  mem_stats->set_temp_memory_size(0);
  