Am I correct that Grub's time() function returns the expected Unix time_t value
- seconds since midnight, January 1, 1970, UTC?
Does Grub's time() function get its value from grub_get_datetime()?
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-
On 06.04.2012 17:56, Dave Mielke wrote:
> Am I correct that Grub's time() function returns the expected Unix time_t
> value
> - seconds since midnight, January 1, 1970, UTC?
Yes, hopefully now it does, I've fixed a bug in it recently
> Does Grub's time() function get its value from grub_get_datet
What do you think about the following code to get a fairly accurate actual time
in milliseconds? I'm thinking of adding it to the Grub part of our
timing.c:getCurrentTime() function.
static time_t baseSeconds = 0;
static uint64_t baseMilliseconds = 0;
uint64_t milliseconds = grub_get_time_
[quoted lines by Dave Mielke on 2012/04/06 at 12:08 -0400]
>What do you think about the following code to get a fairly accurate actual
>time
>in milliseconds? I'm thinking of adding it to the Grub part of our
>timing.c:getCurrentTime() function.
Here's what I think is a better version, especia
Another standard integer macro we use that's missing is UINT32_C. Maybe that
whole set of macros (INTn_C,UINTn_C where n=8,16,32,64) could also be defined.
So far, it's the U?INTn_MAX and U?INTn_C macros that we're tripping over.
--
Dave Mielke | 2213 Fox Crescent | The Bible is the v
Shérab writes:
> Hi,
>
> Mario Lang (2011/04/27 23:47 +0200):
>> Sébastien Hinderer writes:
>>
>> > Hi,
>> >
>> > My braille display is connected to the computer with a USB to serial
>> > adapter. If I have to unplug the adapter for some reason and then plug
>> > it again, the braille display d
On 07.04.2012 00:54, Mario Lang wrote:
> Shérab writes:
>
>> Hi,
>>
>> Mario Lang (2011/04/27 23:47 +0200):
>>> Sébastien Hinderer writes:
>>>
Hi,
My braille display is connected to the computer with a USB to serial
adapter. If I have to unplug the adapter for some reason and
[quoted lines by Mario Lang on 2012/04/07 at 00:54 +0200]
>I guess you could define a udev rule for it and have it named always
>consistently.
In a recent discussion I was engaged in on the linux-usb mailing list, GKH
mentioned that there are stable names under /dev/serial. My system doesn't h