Open mrmgxxxx opened 8 months ago
a.out code:
#include <stdio.h>
#include <time.h>
int main()
{
struct timespec current_time;
clock_gettime(CLOCK_MONOTONIC, ¤t_time);
printf("Current tick time: %lld.%09ld seconds since epoch\n", (long long)current_time.tv_sec, current_time.tv_nsec);
return 0;
}
faketime version:
Version 0.9.10
Is there any way not to change the tick time?
my a.out which is a simple test tools, it could show the local CLOCK_MONOTONIC time, and it works like:
but I run the faketime command, the tick CLOCK_MONOTONIC time would be changed to unix timestamp,
Is that a problem or did I miss the applicable instructions?