`time` is a command line utility for running another program and summarizing resource usage
3
votes
2answers
35 views
How to get time synced outputs (different timezones on servers)?
So imagine there are ~100 servers with different timezones (not all diff., but many-many timezones). There are outputs on the server logs like:
server1:BFE4C025 0420201413 P H sysplanar0 ...
3
votes
1answer
41 views
How to measure the clock pulse of my computer manually?
My PC has two processors, and I know that each one runs at 1.86 GHz. I have just read about clock cycles and I only have a (very) rough understanding, so I apologize beforehand if my question is so ...
2
votes
2answers
51 views
Correct use of TZ, date, and hwclock?
I'm working on an Buildroot developed ARM/ulibc Linux distribution for a custom board. I'm trying to understand the relationship between
If I do this, as I've seen on a few examples online:
# date ...
2
votes
2answers
56 views
Can I measure cold boot time using logs?
I want to measure the time it takes from loading grub until GNOME starts. Can I do this using existing logs?
What alternatives do I have to measure the time it takes from grub until GNOME loads?
2
votes
1answer
77 views
Increase %e precision with /usr/bin/time shell command
When I run the time command in shell time ./myapp I get an output like the following:
real 0m0.668s
user 0m0.112s
sys 0m0.028s
However,when I run the command \time -f %e ./myapp I lose ...
1
vote
2answers
30 views
How to get the time of several commands with a loop
I have this command:
time -p sh -c 'command1; command2;'
So command1and command2 is executed and I get the real, user and sys time printed on the console.
But I want that command1; command2; is ...
2
votes
0answers
108 views
Using hardware clock on linux
I using an old version of RHEL that I have recently upgraded from 5.4 to 5.8, with a customised 2.30.9 kernel.
The system clock drifts wildly (> 5 seconds/day) unless it is controlled using an ...
5
votes
3answers
318 views
How can I delete a folder with lots of subfolders fast?
I have a folder with 266778 subfolders. How can I delete it?
I have tried
cd ~/.local/share/Trash/
sudo rm -rf *
but it takes much time. After 1 minute 25 seconds real time and 0.072 seconds user ...
2
votes
1answer
196 views
Good method to compare time?
I need to check for the current time and abort the script if it is not proper time of day I am supposed to run it. Also, if anyone else runs it, it should abort.
For example: I need my script to only ...
3
votes
1answer
139 views
Does setting the system time back impair logrotate operation?
I'm working on an embedded linux system where the root filesystem is mounted from an SDcard. Although many systems like this just mount /var/log on a ramdisk, I'd like to save the logs to the SDcard ...
2
votes
0answers
124 views
cpu time measurement with wait4 vs. cpuacct cgroup
I want to start a process and measure the cpu time (user+sys) it needs until it terminates.
I know I can use the wait4 system call, which returns a struct with user and system time (I use the sum of ...
2
votes
2answers
201 views
I messed up my system clock in Arch Linux
I installed Arch a couple of days ago. Just realized the date/time were off by a day and one hour.
I changed it using timedatectl set-time. Then used hwclock --systohc to set the hardware clock. ...
0
votes
2answers
66 views
I want to add the above date to each line on a prstat log file
I have a prstat log, as you all know the date and time is recorded on the top of the log file, I would like to add that date and time to the begging of each line until it gets to a new date, then I ...
0
votes
1answer
203 views
Whats the most efficient way of adding milliseconds to this code?
#-----------------------------------------------------------------------------
#
# Get time string
#
#-----------------------------------------------------------------------------
#
sub formatTime
...
1
vote
1answer
363 views
How to set tz and date without restart in Debian Squeeze?
I've tried tzselect and all it appears to do is tell me what region I want to pick.
I'm trying to change tz without a restart and for all users, then sync the time accordingly.