Argonne National Laboratory

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  Index 1994  1995  <19961997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: Finding out when "NOW" is in a sequence
From: Jeff Hill <johill@lanl.gov>
To: Ron Chestnut <RON@slc.slac.stanford.edu>
Cc: tech-talk@aps.anl.gov
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        johill@lanl.gov
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 
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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·