?? altera擴展的專用api的使用實例.c
字號:
main()
{
alt_u32 checksum_value;
alt_u32 checksum_start_time;
alt_u32 checksum_end_time;
If (alt_timestamp_start()<0)
{
Printf ("No timestamp device available. \n");
}
else
{
//在校驗前取出時間戳值
checksum_start_time= alt_timestamp_start();
//執(zhí)行校驗
checksum_value= checksum_test();
//在校驗后取出時間戳值
checksum_end_time= alt_timestamp();
//從 checksum_end_time到checksum_start_time的數(shù)字的不同測試時間
Printf("timestamp measurement for checksum_test()=%u ticks,\n",(unsigned int)( checksum_end_time- checksum_start_time));
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -