Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [time]

The tag has no usage guidance.

0
votes
1answer
6 views

Time dependent EOS unit test

My contract has time dependent actions, which I want to test. How can I mock the clock in the smart contract such that I can set it to any time I want? An example of one action that is time ...
3
votes
3answers
53 views

How to add “time lock” to the EOS tokens

I have issued some tokens base on eosio.token in jungle testnet, and I am able to transfer the tokens between accounts. Now if I want to enforce some control to the tokens sent ( for example, time ...
1
vote
1answer
37 views

What would happen when a transaction fails because “took too long”?

When call an action of a contract, sometimes meet "Transaction took too long" error. If a transaction fails because of "took too long" error, the transaction will be discarded in chain? Or next BP ...
3
votes
1answer
60 views

How do dApp developers manage the end-user max transaction time with the following 3 unpredictable factors?

The unpredictable factors are: 21 different CPUs (and even those 21 CPUs are constantly changing based on BP voting) Potentially different max-transaction-time for each BP (can a dApp developer even ...
3
votes
1answer
139 views

How to print the real time is EOS contract?

In EOS contract library, it supports the now() and current_time()method to get the current time, but it only represent the block time and won't be changed during the execution. But now I want to ...
1
vote
0answers
12 views

Should ntp be running on EOS nodes that p2p to other nodes?

Does the EOSIO software attempt to synchronize the current time between multiple EOS hosts (or nodes), or should NTP be used to manage system time? Presumably two separate time sync sources could ...
4
votes
1answer
99 views

Time in Milliseconds

How does one retrieve current time in milliseconds? now() returns time in seconds. I know that you can use fc::time_point::now() from fc/time.hpp, but that include does not seem to work in contracts.