Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?

# how many milliseconds in 1 second ?

14 replies to this topic

### #1 Elagizy

Elagizy

Resident Elite

• Joined: 06-June 04
• Location: Egypt

Posted 06 September 2005 - 11:44

hello,

I need to know 1 second = ?? milliseconds

when i use Format(Now, "ff") it seems that the maximum value is 96.

I think 1 secound = 100 milliseconds but vb.net says 96

Is "ff" refer to millisecond or what ?!

Thanks for any help

### #2 huddy

huddy

Xbox Gamer Tag: Huddy72

• Joined: 02-September 04
• Location: Hastings, UK

Posted 06 September 2005 - 11:46

1,000 milliseconds makes up one second.

Edit : How is VB saying it's 96?

### #3 rokin blenda™

rokin blenda™

Neowinian

• Joined: 09-May 05
• Location: London/Oxford

Posted 06 September 2005 - 11:48

the milli prefix means 10^-3, so 1 second = 1000 milliseconds

### #4 Max™

Max™

Neowinian ULTRAKILL

• Joined: 21-April 03
• Location: Cornwall

Posted 06 September 2005 - 11:55

Milli means 1000.

### #5 SaLiVa

SaLiVa

The Only Bruneian Here

• Joined: 03-July 03
• Location: Southampton, Hampshire

Posted 06 September 2005 - 11:57

Milli means 1000.

Wrong. 10^-3 (To the power of -3)

### #6 Antaris

Antaris

Neowinian UNSTOPPABLE

• Joined: 25-January 05
• Location: United Kingdom

Posted 06 September 2005 - 11:56

'f' when used in a style string for the Format(...) function referes to fixed numerical value, not a milli second, you want to pull that value out yourself (from the time), and calulate the milli seconds manually.

### #7 Max™

Max™

Neowinian ULTRAKILL

• Joined: 21-April 03
• Location: Cornwall

Posted 06 September 2005 - 12:14

Wrong. 10^-3 (To the power of -3)

http://en.wikipedia.org/wiki/SI_prefix

Look at the table. Yes, it is 10^-3, but Milli indicates 'Thou'.

10−3  milli  m  Thousandth  0.001

### #8 +mrbester

mrbester

Be seeing you...

• Joined: 10-April 02
• Location: Brighton, Land of the South Saxons, Albion

Posted 06 September 2005 - 12:17

Take a closer look yourself. "Milli" means thousandth (with "kilo" meaning thousand). The "Thou" part is irrelevant in this case as it isn't a root element of the words in question...

### #9 OP Elagizy

Elagizy

Resident Elite

• Joined: 06-June 04
• Location: Egypt

Posted 06 September 2005 - 12:23

1,000 milliseconds makes up one second.

Edit : How is VB saying it's 96?

```1:      Enc1.Text = Format(Now, "ff")
If Enc1.Text = 96 Then Exit Sub Else GoTo 1
```

The maximum value which i reached to exit sub is 96

if "ff" is not a millisecond, so what is it ?

### #10 +BudMan

BudMan

Neowinian Super Star

• Tech Issues Solved: 40
• Joined: 04-July 02
• Location: Schaumburg, IL
• OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 06 September 2005 - 12:32

http://msdn.microsof...dateformats.asp

F Displays fractions of seconds. For example ff will display hundredths of seconds, whereas ffff will display ten-thousandths of seconds. You may use up to seven f symbols in your user-defined format. Use %f if this is the only character in your user-defined numeric format.

### #11 OP Elagizy

Elagizy

Resident Elite

• Joined: 06-June 04
• Location: Egypt

Posted 06 September 2005 - 12:35

http://msdn.microsof...dateformats.asp

F  Displays fractions of seconds. For exampleff> will display hundredths of seconds, whereas ffff will display ten-thousandths of seconds. You may use up to seven f symbols in your user-defined format. Use %f if this is the only character in your user-defined numeric format.

WOW, Thanks alot for this link), it really helps.

### #12 markjensen

markjensen

Linux noob since Red Hat 5.1

• Joined: 02-October 03
• Location: Middle Tennessee
• OS: GNU/Linux
• Phone: Android and iPhone

Posted 06 September 2005 - 12:35

### #13 OP Elagizy

Elagizy

Resident Elite

• Joined: 06-June 04
• Location: Egypt

Posted 06 September 2005 - 12:37

OMG , GOOOOGLE ROCKS

### #14 +BudMan

BudMan

Neowinian Super Star

• Tech Issues Solved: 40
• Joined: 04-July 02
• Location: Schaumburg, IL
• OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 06 September 2005 - 12:40

WOW, Thanks alot for this link , it really helps.

Yeah, crazy huh --> who would think to look in the documentation for info

### #15 SaLiVa

SaLiVa

The Only Bruneian Here

• Joined: 03-July 03
• Location: Southampton, Hampshire

Posted 08 September 2005 - 12:52

http://en.wikipedia.org/wiki/SI_prefix

Look at the table. Yes, it is 10^-3, but Milli indicates 'Thou'.

One thousandth of a metre. Yes, you just proved it yourself.
I take Physics and we have to deal with these conversions everyday. It defines whether you get a mark or not in any question, and every mark counts...