---
title: 函数：get_op_start
description: "| C函数原型 | uint64\\_t aclprofGetOpStart(const void \\*opInfo, size\\_t opInfoLen, uint32\\_t index) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0868.html"
---

# 函数：get_op_start

| C函数原型 | uint64\_t aclprofGetOpStart(const void \*opInfo, size\_t opInfoLen, uint32\_t index) |
| --- | --- |
| Python函数 | op\_start = acl.prof.get\_op\_start(op\_info, op\_info\_len, index) |
| 函数功能 | 获取算子执行的开始时间，单位为ns。同步接口。 建议用户新建一个线程，在新线程内调用该接口，否则可能阻塞主线程中的其它任务调度。 |
| 输入说明 | op\_info：int，指定算子信息的内存地址。 op\_info\_len：int，算子信息的长度。 index：int，指定获取第几个算子的算子名称。 用户调用acl.prof.get\_op\_num接口获取算子数量后，这个index的取值范围：[0, (算子数量\-1)]。 |
| 返回值说明 | op\_start：int，算子执行的开始时间。 |
| 参考资源 | 接口调用示例，参见Profiling性能数据采集。 |
