Hi,
I need to time a certain function in my C/C++ code and I am experiencing some difficulties. I timed it using wallclock time so I know that it takes approximately 500-600 microseconds with
gettimeofday(&start, NULL);
// my function call
gettimeofday(&end, NULL);
answer = (end.tv_sec -... (2 Replies)
Hello
I have problem with function 'time' to test my program for file copying .
How to run the function in my source code ?
I try something like that:
system("time"); < -- but this don't working (2 Replies)
Hi All,
I am using solaris and nawk.
Is there any time function in nawk which is simliar to the shell `date` function ?
Can any experts show any examples? (4 Replies)
HI ,
I need to get the timedifference between two values... which funcation will help
eg: difference betweem 19:22 and 19:43 should give 21 mins (2 Replies)
hello everybody!
i want to post a question. So, I use the command 'time a.out' to time the duration of the program a.out. The return value of this function was:
real 0m4.116s
user 0m4.112s
sys 0m0.016s
What i want is! I try to find a way to get (NOT manually) the value of real time.... (2 Replies)
HI
I have a Red Hat Enterprise with Real Time kernel.
Are you aware if there are C functions for this kernel or some code/library for this OS for measuring time more lightweight than clock_gettime and gettimeofday? THe hardware I have is NUMA.
Reading forums I found gethrtime but it is... (1 Reply)
Hello, I have made a Linux Shell Script that downloads 6 files from the Internet and then deletes them. Now i want to use the function "/usr/bin/time" and "bc" to calculate how long the avergate run time for the shell script is. I therefore need to do it 100 times. My shell script code is below:
... (6 Replies)
I want to print the difference (in days) between ($7) and the oldest record date ($6) based on unique ID ($5) on a new field. In addition, I want to subtract oldest date from recent dates(in days) ($6) for each unique ID ($5).
Here is the data looks like
7 81 1 47 32070 2010-12-14 ... (11 Replies)
Hi guys and gals...
I am writing a piece of code that is dash compliant and came across this error.
I have put it in the OSX section as that is what I am using.
I have no idea what the 'dash' version is but was installed about 6 months ago.
MBP, OSX 10.12.6, default terminal running dash on... (4 Replies)
Discussion started by: wisecracker
4 Replies
LEARN ABOUT REDHAT
savetextmode
savetextmode(1) Svgalib User Manual savetextmode(1)NAME
savetextmode, textmode - save or restore the complete SVGA status for textmode.
SYNOPSIS
savetextmode
textmode
DESCRIPTION
These are simple scripts to save the SVGA register state when in textmode to the files /etc/vga/fontdata and /etc/vga/textregs
($HOME/.vga/fontdata and $HOME/.vga/textregs if directory /etc/vga is not writeable) or to restore it from these files.
The actual utilities used are restorefont(1), restoretextmode(1), and restorepalette(1).
The purpose of these scripts program is usually to recover from a crashed console due to an svgalib, Xfree or other program bug.
You do this by being a smart guy and running savetextmode right after booting of your machine, prior to any problems. Then, in case the
SVGA state is hosed and you sit in front of a blank or useless console, change VC (maybe login) to get to a shell. Or exist the currently
running program with <Ctrl>-C, <Ctrl>-<Alt>-<Backspace>, or whatever applies. Once you got a shell, run textmode and it will hopefully ren-
der your console useable again.
To make it clear: You do all this while not seeing anything on your console screen, you enter this information blindly or after logging in
from a network. Also, if the keyboard is left in raw mode, nothing can really help you as you cannot enter anything which a shell will
understand.
FILES
/etc/vga/fontdata or $HOME/.vga/fontdata
/etc/vga/textregs or $HOME/.vga/textregs
SEE ALSO svgalib(7), vgagl(7), libvga.config(5), dumpreg(1), convfont(1), fix132x43(1), restorefont(1), restoretextmode(1), restorepalette(1),
runx(1), setmclk(1),
AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced utility as well as of the
original documentation is unknown.
It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>.
Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections
to this first version of the svgalib manual.
Svgalib (>= 1.2.11) 2 Aug 1997 savetextmode(1)