---
title: 函数：create_stamp
description: "| C函数原型 | void \\*aclprofCreateStamp() |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0842.html"
---

# 函数：create_stamp

| C函数原型 | void \*aclprofCreateStamp() |
| --- | --- |
| Python函数 | stamp = acl.prof.create\_stamp() |
| 函数功能 | 创建msproftx事件标记。后续调用函数：mark、函数：set\_stamp\_trace\_message、函数：push和函数：range\_start接口时需要以描述该事件的指针地址作为输入，表示记录该事件发生的时间跨度。同步接口。 与函数：destroy\_stamp接口配对使用，需提前调用函数：start接口。 |
| 输入说明 | 无 |
| 返回值说明 | stamp：int，指针地址。 返回0表示失败。 返回void类型的指针地址表示成功。 |
| 约束说明 | 无 |
| 参考资源 | 接口调用示例，参见Profiling性能数据采集。 |
