Rate This Document
Findability
Accuracy
Completeness
Readability

GetCpuClock

Obtain the timestamp, that is, the number of clock cycles after the device is reset:

uint64_t HMPP_GetCpuClock ();

Return Value

Current timestamp

Error Codes

None

Example

void  GetCpuClock()
{
    printf("clock = %llu\n", HMPP_GetCpuClock());
}

Output:

clock = 259338746414838

The actual value of clock varies.