Sponsored Content
Full Discussion: clock cycle count
Top Forums Programming clock cycle count Post 302261662 by nicos on Tuesday 25th of November 2008 09:55:07 AM
Old 11-25-2008
clock cycle count

Hello everybody!
Is there a way to count the clock cycles (that a program took to finish) in C?

thanxSmilie
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell cycle

Hello I got a cycle in the script which open another scripts. if then action fi Scripts action will be running 2 times at the same time. Inside of action() is insert into the table. But what I want is that only first script can do insert into table. So how to do... (2 Replies)
Discussion started by: mape
2 Replies

2. Shell Programming and Scripting

For cycle

Hello, I have files in a dir. I what to create a FOR cycle that will do this FOR <condition> do file=`ls <directory> | tail -1` echo $file mv -f $file <another dir> done What I want to now is what should I put in the <condition>. The condition I want is that the FOR will execute... (3 Replies)
Discussion started by: nagomes
3 Replies

3. Shell Programming and Scripting

wildcard in a if cycle

hello everybody, I need help on putting a wildcard match inside an if condition (I'm using korn shell): if ] then echo ' ' echo ''$MYSEL' is not a correct option' echo ' ' else ..... i tried also #if -ne "``" and a lot of combinations of `"' but I didn't find the... (2 Replies)
Discussion started by: elionba82
2 Replies

4. Shell Programming and Scripting

for cycle

Hello, I have a question: is there a way to have a "for" cycle done a certain number of times. For example in c++ I can do this: for (i=o;i<10;i++) and the cycle will be repeated 10 times. in UNIX for example I do this: for i in `cat /etc/host` do done and the cycle will be repeated... (6 Replies)
Discussion started by: jcpetela
6 Replies

5. Shell Programming and Scripting

for cycle question

i have a question how to modify below script to generate the expect result below : test.sh #!/bin/bash for ((i=0; i < 25; i++)) do echo $1$i done current result: test.sh 20090101 200901010 200901011 200901012 200901013 200901014 200901015 200901016 200901017 200901018 (2 Replies)
Discussion started by: bleach8578
2 Replies

6. Shell Programming and Scripting

Cycle for with for-then-else

Hi, i would like to insert a if-then-else function in to cycle for -------------- cat test -------------- # cat test ALFA BETA GAMMA ----------------------- This is my script: #!/bin/bash for i in $(cat test); if ; then echo "ok" else (5 Replies)
Discussion started by: elilmal
5 Replies

7. Shell Programming and Scripting

For cycle and formatting stdout

Dear all, I want to create a table using a shell script. Hope someone can help. I created a variable that contains the path for different files. For all the files I want to do calculations and print it to stdout (or file) as a table. I tried this code: paths=`cat $tabdelim_file | awk... (7 Replies)
Discussion started by: Higgo
7 Replies
oclock(1X)																oclock(1X)

NAME
oclock - round X clock SYNOPSIS
oclock [-option...] OPTIONS
choose a different color for the both hands and the jewel of the clock choose a different color for the background. choose a different color for the jewel on the clock. choose a different color for the minute hand of the clock. choose a different color for the hour hand of the clock. selects an appropriate level of backing store. define the initial window geometry; see X(1X). specify the display to use; see X(1X). choose a different color for the window border. choose a different width for the window border. As the Clock widget changes its border around quite a bit, this is most usefully set to zero. causes the clock to use the Shape extension to create an oval window. This is the default unless the shapeWindow resource is set to false. causes the clock to not reshape itself and ancestors to exactly fit the outline of the clock. causes the clock to consist only of the jewel, the hands, and the border. DESCRIPTION
The oclock program simply displays the current time on an analog display. COLORS
If you would like your clock to be viewable in color, include the following in the #ifdef COLOR section you read with xrdb: *customization: -color This will cause oclock to pick up the colors in the app-defaults color customization file: <XRoot>/lib/X11/app-defaults/Clock-color. Below are the default colors: Clock*Background: grey Clock*BorderColor: light blue Clock*hour: yellow Clock*jewel: yellow Clock*minute: yellow SEE ALSO
X(1X), X Toolkit documentation AUTHOR
Keith Packard, MIT X Consortium oclock(1X)
All times are GMT -4. The time now is 08:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy