Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I show the exact millisecond diff instead of +1s #626

Closed
qiulang opened this issue Oct 10, 2018 · 6 comments
Closed

How do I show the exact millisecond diff instead of +1s #626

qiulang opened this issue Oct 10, 2018 · 6 comments
Labels
question This issue asks a question or requests usage support

Comments

@qiulang
Copy link

qiulang commented Oct 10, 2018

Hi,
When the millisecond diff is more than 1 second, debug will only show +1s, now I have to resort to

console.time() and console.timeEnd()

So can debug show the exact diff ?

Thanks!

@Qix-
Copy link
Member

Qix- commented Oct 10, 2018

Does #485 do what you want?

@Qix- Qix- added the question This issue asks a question or requests usage support label Oct 10, 2018
@qiulang
Copy link
Author

qiulang commented Oct 10, 2018

No it is not exactly what I want. I want debug to show the exact time diff, e.g. +2500ms (just an example) instead of showing +2s and b/c I can't find a way to do that I am using console.time() and console.timeEnd() now.

I check #485, but has that proposal been implemented ? I saw it was close but I didn't find .begin or .time in source code.

------ update ------

Sorry I found I made a mistake in my original question, it should be +1s not +1ms

@qiulang qiulang changed the title How do I show the exact millisecond diff instead of +1m How do I show the exact millisecond diff instead of +1s Oct 10, 2018
@Qix-
Copy link
Member

Qix- commented Oct 11, 2018

@qiulang no it's not finished yet, hence why the PR is still open.

@qiulang
Copy link
Author

qiulang commented Oct 12, 2018

So could I get a +2500ms instead of +2s?
My original question is not related to the #485

@Qix-
Copy link
Member

Qix- commented Oct 12, 2018

See #582.

chagris pushed a commit to chagris/debug that referenced this issue Dec 14, 2018
@Qix-
Copy link
Member

Qix- commented Dec 18, 2018

Closing in favor of #582.

@Qix- Qix- closed this as completed Dec 18, 2018
mrtkrcm added a commit to mrtkrcm/debug that referenced this issue Jan 17, 2023
* origin/format:
  fix most issues from the linter
  add `%d` `outputFormatter` to show exact ms diff debug-js#626
  implement metaformatters (color, JSON.stringify)
  move args handling to outputFormatters.m()
  properly match current version's formatting
  fix %n to correctly show namespace
  move formatting mostly into common.js
  start implementing output formatting debug-js#582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue asks a question or requests usage support
Development

No branches or pull requests

2 participants