1234567891011121314 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdbool.h>
- #include <unistd.h>
- #include <time.h>
- #include "common.h"
- void timestamp_get(char *timestamp)
- {
- time_t t;
- t = time(NULL);
- sprintf(timestamp,"%lld",((long long)t)*1000);
- }
|