9 More Discussions You Might Find Interesting
1. Programming
I am trying to implement a simple chess clock. It should have the following options: start, stop, reset, read.
Reset will set the time to zero
Start will start the clock
Stop will stop the clock
My problem is that I want that start continues counting
the time from the time it had when it... (6 Replies)
Discussion started by: kristinu
6 Replies
2. Shell Programming and Scripting
the below shown clock manipulation works well in Linux machine which has TCL 8.5. But when i use the same on the SunOS which has the TCL8.4 , I am getting the error "bad switch "-format": must be -base or -gmt".
For some reason, I am not able to upgrade my TCL 8.4 to 8.5 in SunOS.
Can... (0 Replies)
Discussion started by: prakasuj
0 Replies
3. UNIX for Dummies Questions & Answers
Is it possible to display the clock (timing) on the screen all the time. (3 Replies)
Discussion started by: vino.paal
3 Replies
4. Programming
#include<iostream>
#include<time.h>
using namespace std;
int main()
{
system("date");
clock_t start = clock();
int i=9*8;
while(i--)
{
int j=9999999;
while(j--);
}
clock_t end = clock();
double elapsed =... (4 Replies)
Discussion started by: johnbach
4 Replies
5. UNIX for Dummies Questions & Answers
Hey everyone! Can someone help me, i need to make a program using awk, that displays the current time (hh/mm/ss), i would really apreciate it! Thanks!
Alex. (4 Replies)
Discussion started by: alex_omul
4 Replies
6. Solaris
Hi there!!!
Need your help in solving some tricky problems.
Since clock() as such is buggy on SUN OS 5 we have started using gettimeofday() in our RTOS applications based on Solaris 9.
The problems we actually encountered previously were - the applications kind of freeze/hang eternally on... (1 Reply)
Discussion started by: smanu
1 Replies
7. UNIX for Advanced & Expert Users
Hi
We had a AIX box built last year but was set to the correct GMT time, but using DST time zone. In march this year the clocks went forward without issues. (if I remember a couple of weeks early due to the DST zone)
This year we decided to change the clock to the correct time zone before... (0 Replies)
Discussion started by: markab2
0 Replies
8. Programming
Hey all,
i need a program to get the CPU ticks at certain points of my program. So, i thought about using the clock function, but i'm having a hard time figuring out how it really works. I wrote this simple program to try to understand it but it made me feel more confused:
#include <stdio.h>... (5 Replies)
Discussion started by: kastrup_carioca
5 Replies
9. Linux
Is it not possible to get the "Digital" clock in KDE 3.3 to show am or pm?
Well I just noticed the plain clock setting is the only one that shows it. (2 Replies)
Discussion started by: CTroxtell21
2 Replies