Zelino Rocha | Hi,
Could you get this working? I have a related problem: I'm trying to get the time difference (in minutes and seconds) between two distinct moments in my call flow. I have one Java class in the beggining of the flow, which stores the current time in session data, after that, the app plays on hold music. At any time the user can press one key, captured by a hotlink which points to another Java class, where I get the the current time again, and calculate the time difference between now, and the initial time (stored previously in data session). The problem is: when I try to get the current time after play on hold music, it gives me the same time as the initial.
I tried with
java.sql.Time time = new Time(System.currentTimeMillis());
time.getTime();
Date date = new Date();
date.getTime();
When I run this code localy, I get the time difference, which made me think it might be some CVP issue:
Date date1 = new Date(); System.out.println(date1); Mon Apr 08 12:53:33 BST 2013 System.out.println(date1.getTime()); 1365422013766 Thread.sleep(3000); Date date2 = new Date(); System.out.println(date2); Mon Apr 08 12:53:36 BST 2013 System.out.println(date2.getTime()); 1365422016786
I'd be grateful with any help on this.
Thanks |
| Please sign in to flag this as inappropriate. |