EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Finding out when "NOW" is in a sequence
From: Jeff Hill <[email protected]>
To: Ron Chestnut <[email protected]>
Cc: [email protected]
Date: Mon, 21 Oct 1996 18:07:40 -0600
Ron Chestnut wrote:
> 
> In sequence code, I need to check for an aged epics record value. I can get
> a record timestamp with pvTimeStamp, but I can't find a way to get the current
> time short of doing a pvPut,PvGet,pvTimeStamp sequence to another record.
> 
> The function TsDiffAsDouble does nicely in calculating a difference in seconds.
> 
> Does anyone have a good suggestion on getting the current time? (pvNow)
> 
> /Ron Chestnut

The function "tsLocalTime()" can be used to get the current time.

long tsLocalTime(TS_STAMP *pStamp)

Jeff

-- 
______________________________________________________________________
Jeffrey O. Hill                 Internet        [email protected]
LANL MS H820                    Voice           505 665 1831
Los Alamos, NM 87545 USA        FAX             505 665 5107


References:
Finding out when "NOW" is in a sequence Ron Chestnut

Navigate by Date:
Prev: Re: Finding out when "NOW" is in a sequence Jim B. Kowalkowski
Next: OPI version of errMessage()? Peregrine McGehee
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Finding out when "NOW" is in a sequence Jim B. Kowalkowski
Next: OPI version of errMessage()? Peregrine McGehee
Index: 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024