Sha256: dfe9102bc3646c426571dad2816cfb4862622fcc616b3640192b0e07e37fac1f

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 Bytes

Contents

###########################################################
# uptime_test.rb
#
# A generic test script for general futzing. You can run
# this script via the 'rake example' task.
###########################################################
require 'sys/uptime'
include Sys

print "\nGENERIC TEST SCRIPT FOR SYS-UPTIME\n\n"
puts 'VERSION: ' + Uptime::VERSION

puts "Days: " + Uptime.days.to_s
puts "Hours: " + Uptime.hours.to_s
puts "Minutes: " + Uptime.minutes.to_s
puts "Seconds: " + Uptime.seconds.to_s
puts "Uptime: " + Uptime.uptime
puts "DHMS: " + Uptime.dhms.join(', ')
puts "Boot Time: " + Uptime.boot_time.to_s

print "\nTest successful\n"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sys-uptime-0.7.6-universal-mingw32 examples/uptime_test.rb
sys-uptime-0.7.3-universal-mingw32 examples/uptime_test.rb
sys-uptime-0.7.2-universal-mingw32 examples/uptime_test.rb
sys-uptime-0.7.1-x86-mingw32 examples/uptime_test.rb
sys-uptime-0.7.0-x86-mingw32 examples/uptime_test.rb
sys-uptime-0.6.2-x86-mingw32 examples/uptime_test.rb
sys-uptime-0.6.1-x86-mingw32 examples/uptime_test.rb
sys-uptime-0.6.0-x86-mingw32 examples/uptime_test.rb