tests.timer: Support win2012 for getting time in vm.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>