Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3755

Getting System.Microseconds

$
0
0

I was writing a quick test app to show System.Microseconds in a listbox and noticed something puzzling. I put this code in a 1-second timer:

Listbox1.AddRow(Str(System.Microseconds/1000000))

But each value came out the same instead of being 1 second apart. I had to get System.Microseconds first to get it to work as I wanted:

Var t as Double = System.Microseconds
Listbox1.AddRow(Str(t/1000000))

Is this to be expected or is it a bug?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3755

Trending Articles