Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro vs. other programming languages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01146209
Message ID:
01146676
Vues:
17
Hi Rick,

>You're not really testing fair here.

Depends. *g* I could use DATETIME() in VFP, but then I could use object instead of int in C#, and so forth. It's not the right way to do measure performance in C#, anyway. That's what high performance counters are there for.

However, if you give developers the task to increment a number for five seconds, I'd bet that a huge number of VFP developers would end up using SECONDS() instead of DATETIME() and many .NET developers DateTime.Now.

> I'm kind of blown away just how much of a difference there's between Now and UtcNow...

That's the point. In C# you have so many more possibilities than in C++ which makes it harder to find the most efficient way. Of course, you can find a faster way in C# (timeGetTime, high performance counters, Environment.TickCount), or a slower way in VFP. Not that this makes C++ the better choice...
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform