OSDN Git Service

Improved %%FORK command. Thinking times of each move are also provided.
[shogi-server/shogi-server.git] / sample / check_time.rb
1 100000.times do
2   now1=Time.now
3   now2=Time.now
4   if ((now2-now1)<0) 
5     puts "now1: %d.%d" % [now1.sec, now1.usec]
6     puts "now2: %d.%d" % [now2.sec, now1.usec]
7   end
8 end