Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: Adding userTag to epicsTimeStamp
From: "Hill, Bruce" <bhill@slac.stanford.edu>
To: "Johnson, Andrew N." <anj@aps.anl.gov>, EPICS core-talk <core-talk@aps.anl.gov>
Date: Mon, 9 Oct 2017 14:13:44 +0000
SLAC is planning to use 64 bit pulse id¹s for LCLS-II, so we¹d certainly
want to see a 64 bit userTag.   I noticed the 32 bit userTag in Bob¹s talk
this morning and was anticipating that we¹d want to lobby to increase it
to 64 bits.
Cheers,
- Bruce

On 10/9/17, 2:23 PM, "core-talk-bounces@aps.anl.gov on behalf of Johnson,
Andrew N." <core-talk-bounces@aps.anl.gov on behalf of anj@aps.anl.gov>
wrote:

>I just tried modifying the definition of the epicsTimeStamp object,
>adding an epicsUInt64 userTag member to it. Everything built without
>problems and the tests all passed. Then I looked through pvDataCPP and
>connected this to the userTag in property/timeStamp.cpp.
>
>Any lab that wants to use this would have to set the userTag in their
>generalTime time provider(s).
>
>Observations:
>
>1. I have not added userTag to the epicsTime class, which is different to
>an epicsTimeStamp. C++ code tends to pass around epicsTime objects by
>value, and I¹m reluctant to double the size of that object unnecessarily.
>
>2. Some work would be needed to support the userTag in
>epicsTimeToStrftime(). There are some free conversion format characters
>left: %i %J %K %L %N %o %q %Q (comparing MacOS and Linux docs plus a few
>others inline).
>
>3. There are few tests for userTag in pvData/testApp, not sure if any
>could really check what I did.
>
>4. I used an epicsUInt64 because someone (maybe Dirk Zimoch?) asked for
>it to be 64 rather than 32 bits. The PVA timeStamp userTag was defined to
>be 32 bits, should we consider changing it to 64?
>
>
>Is doing this a good idea, and if so is it the right approach?
>
>- Andrew
>


References:
Adding userTag to epicsTimeStamp Johnson, Andrew N.

Navigate by Date:
Prev: Re: Adding userTag to epicsTimeStamp Marty Kraimer
Next: Re: Adding userTag to epicsTimeStamp Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Re: Adding userTag to epicsTimeStamp Benjamin Franksen
Next: Build failed in Jenkins: epics-base-3.15-test #32 APS Jenkins
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 10 Oct 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·