Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

time_util.c File Reference


Detailed Description

Implementations of the functions in time_util.c.

Definition in file time_util.c.

Include dependency graph for time_util.c:

Include dependency graph

Go to the source code of this file.

Functions

int string_to_microsec (unsigned long long *us_out, const char *str)
 Convert a string to a microsecond value.


Function Documentation

int string_to_microsec unsigned long long *  us_out,
const char *  str
 

Convert a string to a microsecond value.

The string format is a number followed by an optional unit notation, where microseconds is the default unit. For example:

  • 10 = 10 microseconds
  • 10us = 10 microseconds
  • 10ms = 10,000 microseconds
  • 10s = 10,000,000 microseconds
Parameters:
us_out The destination for the microsecond value.
str The string to parse.
Returns:
True if the string was successfully parsed, false otherwise.

Definition at line 29 of file time_util.c.

References ensure, and require.

Referenced by RKTask::BeginCPUScheduling(), RKObserverAdvocate::BeginCPUScheduling(), bfRealTimeTaskHey(), paProcessOptions(), rktProcessOptions(), and RealTimeSchedule::setParameters().


Generated on Fri Oct 22 07:50:58 2004 for CPU Broker by  doxygen 1.3.9.1