ts-7000
[Top] [All Lists]

Re: [ts-7000] Re:TS-Linux difftime

To:
Subject: Re: [ts-7000] Re:TS-Linux difftime
From: Ken Lu <>
Date: Mon, 5 Dec 2011 06:27:16 -0800 (PST)


As my experience, TS-LINUX does not accept second's setting.  If you need to set time, have to set at 0 second of per minute.  So my program needs to wait for less than one minute(count down to zero, depends on start time) to set time.
 
Ken

--- On Mon, 12/5/11, Mike Dodd <> wrote:

From: Mike Dodd <>
Subject: [ts-7000] Re:TS-Linux difftime
To:
Received: Monday, December 5, 2011, 8:23 AM

 
Joel Morgan wrote:
> I have difftime() working under TS-Linux on a 7260. The timing seems to
> be off a little but I haven't investigated it yet.

> Gnu libc manual says
> that time_t is just a double and you can subtract your two values.
> difftime() is supposed to the be more portable though.

I wrote my own:

----------
double my_difftime (time_t t1, time_t t0)
{
return (double)(t1) - (double)(t0);
}
----------

This works perfectly. I could have implemented it as a macro, but what
the heck....

Strangely, when I added it to my test program, the regular difftime()
began to work! Maybe he timing issue you mentioned is in play.

I'll stick with my function. :-)

--
Mike

Mike Dodd
Louisa County, VA USA

http://mdodd.com


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU