---
title: 函数：get_step_timestamp
description: "| C函数原型 | aclError aclprofGetStepTimestamp(aclprofStepInfo\\* stepInfo, aclprofStepTag tag, aclrtStream stream) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0873.html"
---

# 函数：get_step_timestamp

| C函数原型 | aclError aclprofGetStepTimestamp(aclprofStepInfo\* stepInfo, aclprofStepTag tag, aclrtStream stream) |
| --- | --- |
| Python函数 | ret =acl.prof.get\_step\_timestamp(stepinfo, tag, stream) |
| 函数功能 | 利用单算子加载与执行接口实现训练的场景下，使用本接口用于标记迭代开始与结束时间，为后续Profiling解析提供迭代标识，以便以迭代为粒度展示性能数据。 |
| 输入说明 | stepinfo：指定迭代信息。需提前调用acl.prof.create\_step\_info接口创建aclprofStepInfo类型的数据。 tag：用于标记迭代开始或结束。在迭代开始时传入ACL\_STEP\_START，迭代结束时需传入ACL\_STEP\_END。 stream：指定Stream。 |
| 返回值说明 | ret：int，错误码。 返回0表示成功。 返回其它值表示失败。 |
