microseconds abbreviature

This forum is for developers of Rack Extensions to discuss the RE SDK, share code, and offer tips to other developers.
User avatar
turn2on
RE Developer
Posts: 814
Joined: 13 Mar 2015

Post 18 May 2023

Have error when try to use symbol μs (microseconds): JSONDecodeError("Extra data", s, end)
Need to use something like mms for this.
Does it ok & right solution?

sec = seconds
ms = msec = milisecond
μs = microseconds, and as find = mus = musec

As I find, if μs it not possible to use "μ" symbol, you can use mu. But never see this before.

Of course we can use just "microseconds".. But in interface popup text value "230 microseconds" - this is a very long text that close panel parts.
So what you prefer to use for microseconds abbreviature in RE?

mcs
mcsec
mms
??
Last edited by turn2on on 18 May 2023, edited 2 times in total.

User avatar
Loque
Moderator
Posts: 11262
Joined: 28 Dec 2015

Post 18 May 2023

μ is a special character which probably must be encode with a \u0000, where 0000 is the number of the character.

Note, that some characters visualization may depend on a specific font.

Your required character might be encode as \u00B5.

Also note, that your symbol represents "micro" and not "milli".
Reason12, Win10

User avatar
turn2on
RE Developer
Posts: 814
Joined: 13 Mar 2015

Post 18 May 2023

Thank You, Loque!
First variant solution is working:

100 \u00B5s = 100 μs in reason rack.

User avatar
DaveyG
Posts: 2599
Joined: 03 May 2020

Post 18 May 2023

"us" is a relatively common abbreviation for microseconds.

User avatar
turn2on
RE Developer
Posts: 814
Joined: 13 Mar 2015

Post 18 May 2023

"us" is near to what we want, but interesting to have normal original "μs" in software, where time parameters is fundamental.
In dev docs not find before that we can use unicode symbol characters. Good that this is possible.

  • Information
  • Who is online

    Users browsing this forum: CommonCrawl [Bot] and 3 guests