Skip to content
Advertisement

Tag: time

time option doesn’t work

I tried to measure execution time and format it with this command: But such command works: I tried to determine where another time is located, but all showes to /usr/bin/time or or How to define where another time is located? Answer Users of the bash shell need to use an explicit path in order to run the external time command

How to slow all time measurements of a process?

I’d like to make an application believe that time is going faster/slower than real time. I.e. I need to make all the time measurement APIs return t0+dt*s with user-defined s when t0+dt is real time. This would affect anything like gettimeofday() as well as timer_gettime() and all related functions and mechanisms (including actual trigger times of timers). I think of

Maximum values for time_t (struct timespec)

I am using the struct timespec structure and here it is: Thing is, user will be entering the values for each of these individual members, and i want to put a check a max. value the user can enter. Can I take the max. value of time_t as int max value? i.e INT_MAX for tv_sec and LONG_MAX (defined in limits.h)

Advertisement