Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8667143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:53:53+00:00 2026-06-12T17:53:53+00:00

Returns the tuple {MegaSecs, Secs, MicroSecs} which is the elapsed time since 00:00 GMT,

  • 0

Returns the tuple {MegaSecs, Secs, MicroSecs} which is the elapsed
time since 00:00 GMT, January 1, 1970 (zero hour) on the assumption
that the underlying OS supports this. Otherwise, some other point in
time is chosen. It is also guaranteed that subsequent calls to this
BIF returns continuously increasing values. Hence, the return value
from now() can be used to generate unique time-stamps, and if it is
called in a tight loop on a fast machine the time of the node can
become skewed.

What does the bold sentence means? I’m a few confused as my english is not very good:)
Does it mean the time line is ascending with 45 degrees or does it mean the performance of node will decrease if invoke erlang:now/0 too often?

Thank you very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:53:54+00:00Added an answer on June 12, 2026 at 5:53 pm

    erlang:now/0 is built so that it always returns an incremented number (that is, the MicroSecs will be always guaranteed to be bumped by 1). This is useful because it let’s you use values return by now() as unique IDs in your system (at least during one session of the VM).

    However, it also means that if you run a fast enough loop (that is, sometimes faster than 1 micro second per loop) you might “request” more micro seconds than there are available. So you will actually increment the time over it’s current value! (which is of course, a very bad thing)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a library function called get_count_and_price which returns a 2-tuple (count,price). In
I want to make a scala function which returns a scala tuple. I can
I am a newbie to Python. Consider the function str.partition() which returns a 3-tuple.
Consider this function getPos() which returns a tuple. What is the difference between the
The Python datetime.isocalendar() method returns a tuple (ISO_year, ISO_week_number, ISO_weekday) for the given datetime
type(3,) returns the int type, while t = 3, type(t) returns the tuple type.
I've updated SQLAlchemy to 0.6 but it broke everything. I've noticed it returns tuple
I have a function that returns a tuple that, among others, contains a float
I have a method that returns either a list or a tuple. What is
I have this code. The method returns a (User, Acl, Tree) tuple. Instead of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.