RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.MSecsPerSec Constant

Specifies the number of milliseconds in a second.

Pascal
MSecsPerSec = 1000;
C++
MSecsPerSec = 1000;

MSecsPerSec is the number of milliseconds (1000) in a second. 

Using this constant rather than hard coding 1000 makes for more readable code. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!