linux打印一個精確到毫秒級的時間

剛開始搞安卓的時候,並不知道logcat能夠直接打印一個時間,而後本身傻傻的寫了一個時間的函數 ,這裏記錄一下。函數 #include <stdio.h> #include <time.h> #include <sys/time.h> #include <string.h> int main(int argc ,char *argv[]) { char buf[32] = {0}; s
相關文章
相關標籤/搜索