Generation

generate functionWed, 07 Jun 2023

写一个app程序,获取x86机器的tick计数值

int get_tick_count() { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (ts.tv_sec * 1000 + ts.tv_nsec / 1000000); }

Want to kickstart your project?Use the new AI Studio to create your code