#include <android/log.h> __android_log_print(ANDROID_LOG_ERROR, "drawmap", "time1 %d",mt2 - mt1); 注意,这个__android*方法最前边是两个下划线!