Skip to content

Commit

Permalink
显示默认节拍
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYAHONG committed Jan 7, 2025
1 parent 2531ef0 commit 7bff37a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Android/HelloWorld/app/src/main/cpp/native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Java_cn_hyhsystem_hcppbox_helloworld_MainActivity_Init(JNIEnv *env, jobject thiz
/*
* 注意:毫秒定时器由定时器(在主活动实现)调用
*/
hdefaults_tick_t current_tick=0;
static hdefaults_tick_t current_tick=0;
extern "C"
JNIEXPORT void JNICALL
Java_cn_hyhsystem_hcppbox_helloworld_MainActivity_MsTick(JNIEnv *env, jobject thiz) {
current_tick++;
if(current_tick%5000==0)
{
LOGI("Current Tick=%llu",(unsigned long long)current_tick);
LOGI("Current Tick=%llu,SysTick=%llu",(unsigned long long)current_tick,(unsigned long long)hdefaults_tick_get());
}
}

0 comments on commit 7bff37a

Please sign in to comment.