sysconfig_notcgo.go 488 B

1234567891011121314
  1. package cpu
  2. //GetClockTicks get the OS's ticks per second
  3. func GetClockTicks() int {
  4. // TODO figure out a better alternative for platforms where we're missing cgo
  5. //
  6. // TODO Windows. This could be implemented using Win32 QueryPerformanceFrequency().
  7. // https://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx
  8. //
  9. // An example of its usage can be found here.
  10. // https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx
  11. return 100
  12. }