Issues with timing.

This commit is contained in:
Peter Boraros 2011-11-09 02:32:22 +01:00
parent de28e95a26
commit 604a8f36d9
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,8 @@ fi
milis=0
if [ $1 -eq 0 ]; then
nanos=1000000
nanos=0
milis=1
elif [ $1 -eq 1 ]; then
nanos=10000
elif [ $1 -eq 2 ]; then

View file

@ -106,7 +106,7 @@ public class HmacKey extends KeyczarKey {
if ((System.getProperty("milis") != null) && (System.getProperty("nanos") != null)) {
this.milis = Long.parseLong(System.getProperty("milis"));
this.nanos = Integer.parseInt(System.getProperty("nanos"));
if (milis != 0 && nanos != 0) delay = true;
if (milis > 0 || nanos > 0) delay = true;
}
if (delay) System.out.println("Delay setting: milis="+milis+", nanos="+nanos);
else System.out.println("Delay setting: none");