Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Obtains the execution end time of an event (time elapsed since the AI processor system is started).
This API must be used together with other key APIs. The API call sequence is as follows:
1 | aclError aclrtEventGetTimestamp(aclrtEvent event, uint64_t *timestamp) |
1 | timestamp, ret = acl.rt.event_get_timestamp(event) |
Parameter |
Description |
|---|---|
event |
Int, event to be queried. |
Return Value |
Description |
|---|---|
timestamp |
Int, time when the event execution ends, in microseconds. |
ret |
Int, 0 on success; else, failure. |