473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

hundreds of seconds?

Hi all

How can I access partial seconds on the system clock?

I measure air speed and water flow in a heat-exchanger test stand and
count pulses from both water meter and air speed meter. I divide the
amount of these counts over a certain interval with the time of that
interval. Since I only have seconds, I need to wait 100 seconds for may
calculation is I want a precision of 1%.

The radiator fan that I use can't stand these long intervals, 'cause I
run it with 24V and 50 Amps to get decent airflow (10m/s) through my
heat exchanger.

Again: how do I get the hundreds of seconds from the system clock?

In Pascal it was: GetTime( Hr1, Min1, Sec1, cSec1); (yes, I'm that
old).

---
ir EE van Andel eu*@fiwihex.nl www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107

Oct 11 '06 #1
3 1819
eu***********@gmail.com wrote:
Hi all

How can I access partial seconds on the system clock?

I measure air speed and water flow in a heat-exchanger test stand and
count pulses from both water meter and air speed meter. I divide the
amount of these counts over a certain interval with the time of that
interval. Since I only have seconds, I need to wait 100 seconds for may
calculation is I want a precision of 1%.

The radiator fan that I use can't stand these long intervals, 'cause I
run it with 24V and 50 Amps to get decent airflow (10m/s) through my
heat exchanger.

Again: how do I get the hundreds of seconds from the system clock?

In Pascal it was: GetTime( Hr1, Min1, Sec1, cSec1); (yes, I'm that
old).
time.time() returns the system time in seconds since the epoch (1970). The
fractional part is relevant.

However, be aware that your OS may limit the precision here. I'm not sure,
but I think Windows for example doesn't get faster than 10th or 100th of a
second.

For more precise timing, you might need a special library/extension that
works with the cpu timer register or something like that.

Diez
Oct 11 '06 #2
"Diez B. Roggisch" <de***@nospam.web.dewrote:
However, be aware that your OS may limit the precision here. I'm not
sure, but I think Windows for example doesn't get faster than 10th or
100th of a second.
1/100th of a second.
>
For more precise timing, you might need a special library/extension
that works with the cpu timer register or something like that.
Or in Windows case just call time.clock() instead.
Oct 11 '06 #3

python's time is as old as glibc's time(). A more clear interface as
Java should be implements! though i'm not has the ability to do this.
maybe some "volenties" could do out the favor.
On Oct 11, 10:38 pm, eur.van.an...@gmail.com wrote:
Hi all

How can I access partial seconds on the system clock?

I measure air speed and water flow in a heat-exchanger test stand and
count pulses from both water meter and air speed meter. I divide the
amount of these counts over a certain interval with the time of that
interval. Since I only have seconds, I need to wait 100 seconds for may
calculation is I want a precision of 1%.

The radiator fan that I use can't stand these long intervals, 'cause I
run it with 24V and 50 Amps to get decent airflow (10m/s) through my
heat exchanger.

Again: how do I get the hundreds of seconds from the system clock?

In Pascal it was: GetTime( Hr1, Min1, Sec1, cSec1); (yes, I'm that
old).

---
ir EE van Andel e...@fiwihex.nlwww.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107
Oct 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Graham | last post by:
I have a variable which can be in the format "mm:ss" or "hh:mm:ss". I would like to extract the total number of seconds from this. Ie "01:30" would be 90 seconds. Thanks in advance !
65
by: He Shiming | last post by:
Hi, I just wrote a function that has over 200 "cases" wrapped in a "switch" statement. I'm wondering if there are performance issues in such implementation. Do I need to optimize it some way? ...
3
by: nriesch | last post by:
In the documentation, the "Second" property of class DateTime is a value between 0 and 59. In UTC time, approximately every year of so, a leap second is added at 00:00:00 UTC, so as to account...
5
by: charlie strauss | last post by:
Below is a simple program that will cause python to intermittently stop executing for a few seconds. it's 100% reproducible on my machine. I'd be tempted to say this is a nasty garbage...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.