Function: get_op_start
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Obtains the operator execution start time (ns).
As a best practice, the user can create a thread and call this API in the new thread. Otherwise, this API call will block the main thread.
Prototype
- C Prototype
1uint64_t aclprofGetOpStart(const void *opInfo, size_t opInfoLen, uint32_t index)
- Python Function
1op_start = acl.prof.get_op_start(op_info, op_info_len, index)
Parameter Description
|
Parameter |
Description |
|---|---|
|
op_info |
Int, specified memory address. |
|
op_info_len |
Int, length of the operator information. |
|
index |
Int, operator index. The value range is [0, Operator count – 1]. Call acl.prof.get_op_num to obtain the operator count. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
op_start |
Int, operator execution start time. |