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
[email protected]
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
<1996>
1997
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:
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
<1996>
1997
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
|