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: "Jim B. Kowalkowski" <jbk@aps.anl.gov>
To: Ron Chestnut <RON@slc.slac.stanford.edu>
Cc: tech-talk@aps.anl.gov
Date: Mon, 21 Oct 1996 16:15:45 -0500
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

you can use these:

TS_EXTERN long TSgetTimeStamp(int event_number,struct timespec* sp);
TS_EXTERN long TScurrentTimeStamp(struct timespec* sp);

Defined in drvTS.h

struct timespec has the same structure as TS_STAMP in tsDefs.h

-- 
Jim Kowalkowski
708/252-9410
jbk@aps.anl.gov

Argonne National Laboratory
Advanced Photon Source - Accelerator Systems Division
Controls and Computing


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

Navigate by Date:
Prev: Finding out when "NOW" is in a sequence Ron Chestnut
Next: Re: Finding out when "NOW" is in a sequence Jeff Hill
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: Finding out when "NOW" is in a sequence Ron Chestnut
Next: Re: Finding out when "NOW" is in a sequence Jeff Hill
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 ·