[ 
https://issues.apache.org/jira/browse/THRIFT-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236596#comment-17236596
 ] 

Zezeng Wang commented on THRIFT-5315:
-------------------------------------

How about try using this:

[commiter|https://github.com/apache/thrift/commit/bfdbd0344bd3ddf348985b51e02212e8092859d4]

> TimerManager can't work, if we adjust time to old time.
> -------------------------------------------------------
>
>                 Key: THRIFT-5315
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5315
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.12.0
>            Reporter: darry nie
>            Priority: Major
>         Attachments: image-2020-11-18-14-50-09-613.png, 
> image-2020-11-18-14-50-45-116.png
>
>
> Description:
> 1.if current time is 9:00, now I adjust time to 3:00. timer can't work.
> 2.if current time is 9:00, now I adjust time to 12:00. timer can work.
> and i read the source code,found timer is relying on the system time.
> !image-2020-11-18-14-50-09-613.png!
>  
> !image-2020-11-18-14-50-45-116.png!
> Question:
> gettimeofday get the system time.
> How can I choose the clock source, thrift time is relying to the  startup 
> time not system time.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to