# SearchContext and QueryParseContext not having 'nowInMillis()' anymore?

**URL:** <https://discuss.elastic.co/t/searchcontext-and-queryparsecontext-not-having-nowinmillis-anymore/87454>\
**Category:** Elasticsearch\
**Created:** [May 29, 2017, 12:56pm UTC](https://discuss.elastic.co/t/searchcontext-and-queryparsecontext-not-having-nowinmillis-anymore/87454 "2017-05-29T12:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [May 29, 2017, 12:56pm UTC](https://discuss.elastic.co/t/searchcontext-and-queryparsecontext-not-having-nowinmillis-anymore/87454/1 "2017-05-29T12:56:29Z")

</div>

Hi,

I am working in ES 5.4.0  
In our prev versions we had taken dependency on "nowInMillis()" method for some telemetry purpose . Now in the latest code i see it removed ? I was trying to use System.currentTimeMillis() but worried that the correlation might be broken between nodes.

What is the reason to remove it and how could i accomplish the same now?

Thanks, Divya

---

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [May 30, 2017, 8:41am UTC](https://discuss.elastic.co/t/searchcontext-and-queryparsecontext-not-having-nowinmillis-anymore/87454/2 "2017-05-30T08:41:32Z")

</div>

Ping!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 27, 2017, 8:41am UTC](https://discuss.elastic.co/t/searchcontext-and-queryparsecontext-not-having-nowinmillis-anymore/87454/3 "2017-06-27T08:41:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
