ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Millisecond examples
Posted by HANSOO KIM on Jul-27-2023 18:02
Hi, I'm trying to applying the milliseconds time series on the chart that's because of the change the SYSTEM time format to double(i used the SystemTimeToVariantTime() with millisecond variant fraction), i guess.

getChartYMD()
chartTime()
chartTime2()

All function does not support millisecond, i guess.

So, Is there any example of the Millisecond usage of the chart for MFC environment ?

BR
HANSOO KIM

  Re: Millisecond examples
Posted by Peter Kwan on Jul-27-2023 20:40
Hi HANSOO,

As the time is in "double", you can just add the millisecond to the time. For example:

// 2023-07-27   10:30:56.075
double myTime = chartTime(2023, 7, 27, 10, 3, 56) + 75/1000.0;

Best Regards
Peter Kwan

  Re: Millisecond examples
Posted by HANSOO KIM on Jul-28-2023 10:22
Huge Thanks