Discussion:
microseconds to millisecond
Massimiliano Fabbri
2013-02-21 20:25:53 UTC
Permalink
Hello all.

I would like to measure the time in milliseconds that elapses fromthe
connect method (of a socket) to
the 'isconnected' property become true

Or How can I convert microseconds into a Unix timestamp ?

Thanks.
Max.
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Christian Schmitz
2013-02-21 20:31:26 UTC
Permalink
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond

Greetings
Christian
--
Read our blog about news on our plugins:

http://www.mbsplugins.de/


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Massimiliano Fabbri
2013-02-21 20:37:11 UTC
Permalink
so

1 millisecond = microsecond/1000


so I need to convert into unix timestamp

so I can be able to convert it (into php) in milliseconds representation

it is correct if I do this ?

Function MiCroToTimeS(ii as Double) As string

Dim i as Int64 = ii/1000

Return str(FORMAT((i - 2082844800),"############"))

End Function

I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Paul Young
2013-02-21 20:40:15 UTC
Permalink
Massimiliano,

1 millisecond = 1000 * microsecond

Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Massimiliano Fabbri
2013-02-21 20:46:50 UTC
Permalink
Yes, lapsus.

then

milliseconds to time stamp:

Function MiCroToTimeS(ii as Double) As string

Dim i as Int64 = ii*1000
//unix timestamp in seconds from 1 1 1601
Return str(FORMAT((i - 2082844800*1000),"############"))

End Function

IS this correct ?

Thanks
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Massimiliano Fabbri
2013-02-21 21:09:47 UTC
Permalink
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Paul Young
2013-02-21 21:12:37 UTC
Permalink
1 millisecond is 1 thousandth of a second. 1 microsecond is 1 millionth of a second.

Paul Young
Post by Massimiliano Fabbri
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Jon Ogden
2013-02-21 22:02:28 UTC
Permalink
Dim as Double = Microseconds/1000
Dim MilliSec as Double

// Do some work

MilliSec = (Microseconds/1000)-m
Msgbox "The elapsed is "+str(Miilisec)+"milliseconds."



Sent from my iPhone
Post by Paul Young
1 millisecond is 1 thousandth of a second. 1 microsecond is 1 millionth of a second.
Paul Young
Post by Massimiliano Fabbri
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Massimiliano Fabbri
2013-02-21 22:13:28 UTC
Permalink
Yes Jon (

Dim m as Double = Microseconds/1000
)

your code Is much clear
but I need to convert milliseconds to date and the date to timestamp
or both things togheter

Thanks

Max
Post by Jon Ogden
Dim as Double = Microseconds/1000
Dim MilliSec as Double
// Do some work
MilliSec = (Microseconds/1000)-m
Msgbox "The elapsed is "+str(Miilisec)+"milliseconds."
Sent from my iPhone
Post by Paul Young
1 millisecond is 1 thousandth of a second. 1 microsecond is 1 millionth of a second.
Paul Young
Post by Massimiliano Fabbri
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Jim Wagner
2013-02-21 22:18:25 UTC
Permalink
As far as I can tell, dates do not resolve any closer than the nearest second.


To get date stamp, just record dim start_date as date = new date at the start and dim end_date as date = new date at the end.



Jim Wagner
Oregon Research Electronics.

----- Original Message -----
From: "Massimiliano Fabbri" <eudosia.systems-***@public.gmane.org>
To: "Realbasic NUG" <realbasic-nug-Gjhu/N1EzaPthnj+***@public.gmane.org>
Sent: Thursday, February 21, 2013 2:13:28 PM
Subject: Re: microseconds to millisecond

Yes Jon (

Dim m as Double = Microseconds/1000
)

your code Is much clear
but I need to convert milliseconds to date and the date to timestamp
or both things togheter

Thanks

Max
Post by Jon Ogden
Dim as Double = Microseconds/1000
Dim MilliSec as Double
// Do some work
MilliSec = (Microseconds/1000)-m
Msgbox "The elapsed is "+str(Miilisec)+"milliseconds."
Sent from my iPhone
1 millisecond is 1 thousandth of a second. 1 microsecond is 1 millionth of a second.
Paul Young
Post by Massimiliano Fabbri
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Post by Christian Schmitz
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
--
-------------------------------------
Eudosia Systems di Massimiliano Fabbri
Realizzazioni Software e consulenze informatiche
http://www.eudosia-systems.it
linkedin: http://it.linkedin.com/pub/massimiliano-fabbri/19/918/96b

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Jon Ogden
2013-02-21 22:22:26 UTC
Permalink
Sent from my iPhone
Post by Jim Wagner
As far as I can tell, dates do not resolve any closer than the nearest second.
To get date stamp, just record dim start_date as date = new date at the start and dim end_date as date = new date at the end.
To get finer resolution then do both. Calculate milliseconds and date seconds.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Tony Alfrey
2013-02-21 21:14:09 UTC
Permalink
Take it from a physicist, there are a thousand micros in a milli.
What he is trying to say is that you take whatever number you have in
milliseconds and multiply by 1000 to get the number of microseconds.
Post by Massimiliano Fabbri
Are you sure you are right ?
http://www.unitconversion.org/unit_converter/time.html
Post by Paul Young
Massimiliano,
1 millisecond = 1000 * microsecond
Paul Young
On Feb 21, 2013, at 3:37 PM, Massimiliano Fabbri
Post by Massimiliano Fabbri
so
1 millisecond = microsecond/1000
so I need to convert into unix timestamp
so I can be able to convert it (into php) in milliseconds representation
it is correct if I do this ?
Function MiCroToTimeS(ii as Double) As string
Dim i as Int64 = ii/1000
Return str(FORMAT((i - 2082844800),"############"))
End Function
I'm in totally confusion
Am 21.02.2013 um 21:25 schrieb Massimiliano Fabbri
Post by Massimiliano Fabbri
Hello all.
I would like to measure the time in milliseconds that elapses
fromthe connect method (of a socket) to
the 'isconnected' property become true
Or How can I convert microseconds into a Unix timestamp ?
microseconds = 1000* millisecond
Greetings
Christian
_______________________________________________
<http://www.realsoftware.com/support/listmanager/>
<http://support.realsoftware.com/listarchives/lists.html>
--
Tony Alfrey
tonyalfrey-***@public.gmane.org
"I'd Rather Be Sailing"

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
Loading...