11-28-2009
Real time of a clock for every 60 seconds in unix
hi can any one guide me on how to display real time of a clock in unix for every 60 seconds
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need to know where I can get real time stock market data "ticker" feed, in Unix, that can be captured for use in my data base.
If there is a subscriber service, that's good but, I really am looking for a software program that can interface with the Market in question, via modem and capture... (2 Replies)
Discussion started by: dkcordova
2 Replies
2. UNIX for Dummies Questions & Answers
How would you write a program that would continually show the time in HOURS:MINUTES on an ASCII terminal(not just xclock)? (5 Replies)
Discussion started by: Ben070371
5 Replies
3. UNIX for Dummies Questions & Answers
What's the best way to run two OS's in real time??
I want to run Windows 2k professional and a flavor of UNIX in real time and flip between the two. I have vmware ver. 3.2 and Virtual PC 4.3.
I would preferably like to run Win2k with Solaris 8 (intel version) but I'll download Freebsd if... (1 Reply)
Discussion started by: fusion99
1 Replies
4. Shell Programming and Scripting
Dear experts,
I have an epoch time input file such as : -
1302451209564
1302483698948
1302485231072
1302490805383
1302519244700
1302492787481
1302505299145
1302506557022
1302532112140
1302501033105
1302511536485
1302512669550
I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies
5. Programming
I have date time records in a PHP mysql table, I need a PHP travel clock which obviously counts down, I mean acts like a travel clock, but the clock time should be the date time field value down by the second, based on the full date time, from day to seconds
It is not just one record, I... (1 Reply)
Discussion started by: AimyThomas
1 Replies
6. Shell Programming and Scripting
# date +%s -d "Mon Feb 11 02:26:04"
1360567564
# perl -e 'print scalar localtime(1360567564), "\n";'
Mon Feb 11 02:26:04 2013
the epoch conversion is working fine. but one of my application needs 13 digit epoch time as input
1359453135154
rather than 10 digit epoch time 1360567564... (3 Replies)
Discussion started by: vivek d r
3 Replies
7. Shell Programming and Scripting
Hello All,
I have a Perl script I'm writing where I ask the user to enter a "start time" for something. The "$start_time" will be in the format of:
# The Time CLI Option Can be in the format of:
--start-time="1day"
--start-time="2hours"
--start-time="45min"
... (1 Reply)
Discussion started by: mrm5102
1 Replies
8. UNIX for Dummies Questions & Answers
I have read enough books and know about all the basic commands in unix. I have practiced the same in my home. Now i want to real time work like scheduling cron in a real time server, creating alerts, application status check using unix etc..,
I want to have a real time server acc to do this kind... (3 Replies)
Discussion started by: gk1227
3 Replies
clock(3C) clock(3C)
NAME
clock() - report CPU time used
SYNOPSIS
DESCRIPTION
returns the amount of CPU time (in microseconds) used since the first call to The time reported is the sum of the user and system times of
the calling process and its terminated child processes for which it has executed , or (see wait(2) , system(3S), and popen(3S)). To deter-
mine the time in seconds, the value returned by should be divided by the value of the macro
The resolution of the clock varies, depending on the hardware and on software configuration.
If the processor time used is not available or its value cannot be represented, the function returns the value
WARNINGS
The value returned by is defined in microseconds for compatibility with systems that have CPU clocks with much higher resolution. Because
of this, the value returned wraps around after accumulating only 4295 seconds of CPU time (about 72 minutes).
DEPENDENCIES
The default clock resolution is 10 milliseconds.
SEE ALSO
times(2), wait(2), system(3S), thread_safety(5).
STANDARDS CONFORMANCE
clock(3C)