Andrew,
I'm using Ned Arnold's devTimeOfDay.c device support, which gets the current
time into an ai or
a stringin record, for this purpose:
record(ai, "$(P)history$(N)_secsPastEpoch") {
field(DTYP, "Sec Past Epoch")
}
There's a copy in the synApps std module.
Tim
On 8/31/2010 8:04 PM, Andrew Wagner wrote:
Hey guys,
I have a Calcout record that needs to calculate the time between its present and previous processing. How can I best accomplish this? Searching the tech-talk forum I've found that there is DTYP, "Soft Timestamp" which I suppose gets the system time. I would like to compute the time difference in seconds so is it possible to create an AI record
record(ai, "TIme") {
field(DESC, "System Time")
field(DTYP, "Soft Timestamp")
field(INP, "%s")
}
that gets seconds since the epoc I can use as an input to Calcout record?
Cheers,
Andrew
--
Tim Mooney ([email protected]) (630)252-5417
Software Services Group, Advanced Photon Source, Argonne National Lab.
- Replies:
- Re: Time stamp question Andrew Johnson
- References:
- Time stamp question Andrew Wagner
- Navigate by Date:
- Prev:
RE: areaDetector video (Was: network video) nick.rees
- Next:
Re: Time stamp question Martin L. Smith
- 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:
Re: Time stamp question Benjamin Franksen
- Next:
Re: Time stamp question Andrew Johnson
- 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
|