Tag Info

New answers tagged

2

The answer is: You can not! Linux is no real time system. The idea of UNIX and therefore Linux, too, is to provide minimum answer times, while the system is shared between multiple users and system processes. Depending on when you start the command, you might have to wait for a important system process to give you your share of processor time. Further the ...


1

You should IMO not launch the systems date-time picker unless your customers insist on their look and feel. If you really need to do so you need the http-server (apache, ngnix or whaterver else you are using) to start a program that displays on X surface. For this you need to: trigger something in your backend software that will start the program Y that ...


2

Note: Although NTP had this idea of a nanokernel which could be used to patch OS's that don't use NTP, in Linux in particular is not in this case. The NTP code is in the kernel itself as you allude to in question 1. 0: How does this Nanokernel manage to deliver an accuracy less than the system clock tick (such as ns accuracy)? Accuracy greater than ...


1

According to man time you should be able to use -o FILE to output to a file and -a to append to the file. So your command should be: /usr/bin/time -a -o log.txt python script.py >> log.txt Using the -f flag you can set the desired output format of the times.



Top 50 recent answers are included